New maximized visible window should be shown with

ShowWindow(SW_SHOW).
This commit is contained in:
Vitaliy Margolen 2005-11-30 12:37:47 +01:00 committed by Alexandre Julliard
parent aae7632409
commit b78784c3f2
2 changed files with 2 additions and 2 deletions

View File

@ -3117,7 +3117,7 @@ static void test_showwindow(void)
hwnd = CreateWindowExA(0, "TestWindowClass", "Test popup", WS_POPUP | WS_MAXIMIZE | WS_VISIBLE,
100, 100, 200, 200, 0, 0, 0, NULL);
ok (hwnd != 0, "Failed to create popup window\n");
ok_sequence(WmCreateMaxPopupSeq, "CreateWindow(WS_MAXIMIZED):popup", TRUE);
ok_sequence(WmCreateMaxPopupSeq, "CreateWindow(WS_MAXIMIZED):popup", FALSE);
trace("done\n");
DestroyWindow(hwnd);
flush_sequence();

View File

@ -1068,7 +1068,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
if (cs->style & WS_VISIBLE)
{
if (cs->style & WS_MAXIMIZE)
sw = SW_SHOWMAXIMIZED;
sw = SW_SHOW;
else if (cs->style & WS_MINIMIZE)
sw = SW_SHOWMINIMIZED;