New maximized visible window should be shown with
ShowWindow(SW_SHOW).
Vitaliy Margolen
wine-patch at kievinfo.com
Tue Nov 29 15:54:17 CST 2005
ChangeLog:
New maximized visible window should be shown with ShowWindow(SW_SHOW).
dlls/user/tests/msg.c | 2 +-
dlls/user/win.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
-------------- next part --------------
566a30695455d6e3247bf736993a03128a6dca00
diff --git a/dlls/user/tests/msg.c b/dlls/user/tests/msg.c
index be270e8..b31794c 100644
--- a/dlls/user/tests/msg.c
+++ b/dlls/user/tests/msg.c
@@ -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();
diff --git a/dlls/user/win.c b/dlls/user/win.c
index be5727c..dbdb7e5 100644
--- a/dlls/user/win.c
+++ b/dlls/user/win.c
@@ -1068,7 +1068,7 @@ static HWND WIN_CreateWindowEx( CREATEST
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;
More information about the wine-patches
mailing list