-
Maximizing the window
Okay, last stupid question - I hope!
How do I make it so upon creation my window is maximized already? I looked in winuser.h and found the style WS_MAXIMIZE but it didn't seem to do anything. Does one have to call a function to get the screen size and then use these values as the 6th and 7th parameters in CreateWindow()?
-
Try ShowWindow(hWnd, SW_MAXIMIZE)
-
-
Are you creating application in VC++ using MFC app wizard ?
-
Dunno, if he was he probably wouldnt be looking in winuser.h for the styles, he'd just be clicking the checkbox in the resource editor.
*Also, just thought of something. I think WS_MAXIMIZE just enables the maximize box on the system menu, so it isn't grayed out.