ShowWindows(SW_SHOWMAXIMIZED) should ignore WS_MAXIMIZE window
state. Change tests accordingly.
This commit is contained in:
parent
b78784c3f2
commit
93b63566a5
|
@ -3081,11 +3081,11 @@ static void test_showwindow(void)
|
|||
|
||||
trace("calling ShowWindow( SW_SHOWMAXIMIZE ) for invisible popup window\n");
|
||||
ShowWindow(hwnd, SW_SHOWMAXIMIZED);
|
||||
ok_sequence(WmShowMaxPopupResizedSeq, "ShowWindow(SW_SHOWMAXIMIZED):popup", TRUE);
|
||||
ok_sequence(WmShowMaxPopupResizedSeq, "ShowWindow(SW_SHOWMAXIMIZED):popup", FALSE);
|
||||
trace("done\n");
|
||||
|
||||
GetWindowRect(hwnd, &rc);
|
||||
todo_wine ok( rc.right-rc.left == GetSystemMetrics(SM_CXSCREEN) &&
|
||||
ok( rc.right-rc.left == GetSystemMetrics(SM_CXSCREEN) &&
|
||||
rc.bottom-rc.top == GetSystemMetrics(SM_CYSCREEN),
|
||||
"Invalid maximized size after ShowWindow (%ld,%ld)-(%ld,%ld)\n",
|
||||
rc.left, rc.top, rc.right, rc.bottom);
|
||||
|
@ -3105,7 +3105,7 @@ static void test_showwindow(void)
|
|||
|
||||
trace("calling ShowWindow( SW_SHOWMAXIMIZE ) for invisible popup window\n");
|
||||
ShowWindow(hwnd, SW_SHOWMAXIMIZED);
|
||||
ok_sequence(WmShowMaxPopupSeq, "ShowWindow(SW_SHOWMAXIMIZED):popup", TRUE);
|
||||
ok_sequence(WmShowMaxPopupSeq, "ShowWindow(SW_SHOWMAXIMIZED):popup", FALSE);
|
||||
trace("done\n");
|
||||
DestroyWindow(hwnd);
|
||||
flush_sequence();
|
||||
|
|
|
@ -966,9 +966,7 @@ BOOL X11DRV_ShowWindow( HWND hwnd, INT cmd )
|
|||
|
||||
case SW_SHOWMAXIMIZED: /* same as SW_MAXIMIZE */
|
||||
swp |= SWP_SHOWWINDOW | SWP_FRAMECHANGED;
|
||||
if( !(style & WS_MAXIMIZE) )
|
||||
swp |= WINPOS_MinMaximize( hwnd, SW_MAXIMIZE, &newPos );
|
||||
else swp |= SWP_NOSIZE | SWP_NOMOVE;
|
||||
swp |= WINPOS_MinMaximize( hwnd, SW_MAXIMIZE, &newPos );
|
||||
break;
|
||||
|
||||
case SW_SHOWNA:
|
||||
|
|
Loading…
Reference in New Issue