Commit b78784c3 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

New maximized visible window should be shown with

ShowWindow(SW_SHOW).
parent aae76324
...@@ -3117,7 +3117,7 @@ static void test_showwindow(void) ...@@ -3117,7 +3117,7 @@ static void test_showwindow(void)
hwnd = CreateWindowExA(0, "TestWindowClass", "Test popup", WS_POPUP | WS_MAXIMIZE | WS_VISIBLE, hwnd = CreateWindowExA(0, "TestWindowClass", "Test popup", WS_POPUP | WS_MAXIMIZE | WS_VISIBLE,
100, 100, 200, 200, 0, 0, 0, NULL); 100, 100, 200, 200, 0, 0, 0, NULL);
ok (hwnd != 0, "Failed to create popup window\n"); 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"); trace("done\n");
DestroyWindow(hwnd); DestroyWindow(hwnd);
flush_sequence(); flush_sequence();
......
...@@ -1068,7 +1068,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom, ...@@ -1068,7 +1068,7 @@ static HWND WIN_CreateWindowEx( CREATESTRUCTA *cs, ATOM classAtom,
if (cs->style & WS_VISIBLE) if (cs->style & WS_VISIBLE)
{ {
if (cs->style & WS_MAXIMIZE) if (cs->style & WS_MAXIMIZE)
sw = SW_SHOWMAXIMIZED; sw = SW_SHOW;
else if (cs->style & WS_MINIMIZE) else if (cs->style & WS_MINIMIZE)
sw = SW_SHOWMINIMIZED; sw = SW_SHOWMINIMIZED;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment