PDA

View Full Version : new windows tutorial


darkelf2k3
05-16-2006, 11:27 PM
Every DX tutorial series begins with the intruduction of the necessary WIN32 API basics usually. Also, all of them mentions window classes, when it it really unnecessary IMHO. You can specify the predefined "STATIC" as window class, it will have the same effect. Window classes have their uses( well, only sindgle app instance forcing maybe ), but in this context its a bunch of unneeded info I think.

bladder
05-16-2006, 11:46 PM
would'nt a static window be one that cannot be moved, and which has a pre-defined windows handler, and which you cannot the frame off and which you can't make use of the cb[Cls/Wnd/]Extra options?

Granted you can do all that with *other functions* after creating a static function, but putting in the info for all those other functions to get a little control over your window is, i feel, unneeded complexity.

Reedbeta
05-17-2006, 11:13 AM
Yeah. Window classes are definitely useful, if for no other reason than the 'lpfnWndProc' member ;)

kusma
05-17-2006, 11:47 AM
Reedbeta: heh, i prefer snatching the window-messages in the message-pump instead ;)