///Create the main window
if (!(hWnd = CreateWindowEx(NULL, "MainWinClass", "Main Window",
WS_MAXIMIZE | WS_OVERLAPPEDWINDOW | WS_VISIBLE,
0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN),
NULL, NULL,
hInstance, NULL)))
{
return(0);
}//end if
And oh, while maximized, it's still "movable" ... how do I stop that?
Edited by - vbisme on 11/27/00 10:26:03 PM
Window Won't Maximize
I'm trying to create a window that is initially maximize, but it won't!
I think you should try calling maximaize during the CREATEWINDOW message. That way it will be momentarly non-maximized, but should work every time. Or you could initially set the window to the screen size.
Good luck
Good luck
After you''ve created your window call
ShowWindow( hWnd, SW_SHOWMAXIMIZED );
Hope that helps ya...
n!
ShowWindow( hWnd, SW_SHOWMAXIMIZED );
Hope that helps ya...
n!
Both of those ways opens the window "then" maximize it. Is there not a way to maximize it "initialily" ?
The window doesn''t get displayed until you call ShowWindow. If ShowWindow isn''t called with SW_SHOWMAXIMIZED then it wont be shown maximized. If ShowWindow isn''t called at all then the window won''t be displayed at all.
n!
n!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement