Advertisement

Window Won't Maximize

Started by November 25, 2000 11:04 AM
0 comments, last by vbisme 24 years, 1 month ago
I''m trying to create a window that is initially maximize, but it won''t!
  
///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

  
Do you want your application to be maximized when launched? Then call ::ShowWindow( hWnd, SW_MAXIMIZE ) after creating window. Hope this helps.

Kwanji

This topic is closed to new replies.

Advertisement