///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
Window Won't Maximize
I''m trying to create a window that is initially maximize, but it won''t!
November 27, 2000 02:12 AM
Do you want your application to be maximized when launched? Then call ::ShowWindow( hWnd, SW_MAXIMIZE ) after creating window. Hope this helps.
Kwanji
Kwanji
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement