WindowProc
Is there anyway to start directdraw without initializing widows and/or WindowProc or WNDCLASS?
WindowProc is a procedure that all windows in system need. You cant create a window, which don''t have a WindowProc proedure (apart from console application) and you can''t use DirectDraw without a window.
Olek, olo_b@poczta.onet.pl.
Olek, olo_b@poczta.onet.pl.
Olek, olo_b@poczta.onet.pl.
well, i haven''t tried this, but:
i know that when you create ddraw in windowed mode you don''t need a window handle. Then, can''t you just render to primary (i know, bad manners)?
i know that when you create ddraw in windowed mode you don''t need a window handle. Then, can''t you just render to primary (i know, bad manners)?
what about input? how would you run DirectInput, and also DirectSound?
- null_pointer
- null_pointer
You still need to have a window in Windowed mode... You just don''t have to pass DDraw the window handle.
February 11, 2000 05:11 PM
EVERY windows app must have a WindowProc. All windows apps are event driven, and must respond to messages.
thanks everybody. I just find initializing it annoying and wanted to know if their was a way around it.
D:
there is a way
call the function CreateDialog and pass it a dialog template from a resource file
you can pass NULL as the DailogProc parameter
then, use that hwnd for your code
i messed around with this for a little while and created a fullscreen ddraw/dinput app, but it malfuncitoned in windowed mode
i hope that that helps
call the function CreateDialog and pass it a dialog template from a resource file
you can pass NULL as the DailogProc parameter
then, use that hwnd for your code
i messed around with this for a little while and created a fullscreen ddraw/dinput app, but it malfuncitoned in windowed mode
i hope that that helps
-PoesRaven
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement