I've just started programming for Windows and want to know how to make a window maximized when it starts. I looked at the styles listed on MDSN and thought I'd add WS_MAXIMIZE to the style property when I use CreateWindow.
Its very annoying that this has no effect; the window just opens normally as when I was just using WS_OVERLAPPEDWINDOW. Am I doing something wrong, or is there another way to make a window be maximized initially? Any help would be much appreciated.
-Ed ;-)
Code:
hwnd = CreateWindow ("Window Class 1",
"Test Window!",
WS_OVERLAPPEDWINDOW | WS_MAXIMIZE,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL, NULL, hInstance, NULL);
-Ed ;-)
________________________________
Destiny is not a matter of chance; it is a matter of choice.
Destiny is not a matter of chance; it is a matter of choice.