user32: SetWindowPos() shouldn't change the client rect of a minimized window.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9fdb1fd96e
commit
119e215e3e
|
@ -6548,6 +6548,18 @@ static void test_ShowWindow(void)
|
||||||
wine_dbgstr_rect(&rcMinimized), wine_dbgstr_rect(&rc));
|
wine_dbgstr_rect(&rcMinimized), wine_dbgstr_rect(&rc));
|
||||||
GetClientRect(hwnd, &rc);
|
GetClientRect(hwnd, &rc);
|
||||||
todo_wine
|
todo_wine
|
||||||
|
ok(EqualRect(&rcEmpty, &rc), "expected %s, got %s\n",
|
||||||
|
wine_dbgstr_rect(&rcEmpty), wine_dbgstr_rect(&rc));
|
||||||
|
/* SetWindowPos shouldn't affect the client rect */
|
||||||
|
ret = SetWindowPos(hwnd, 0, 0, 0, 0, 0,
|
||||||
|
SWP_NOMOVE | SWP_NOSIZE | SWP_NOACTIVATE | SWP_NOZORDER);
|
||||||
|
ok(ret, "not expected ret: %lu\n", ret);
|
||||||
|
GetWindowRect(hwnd, &rc);
|
||||||
|
todo_wine
|
||||||
|
ok(EqualRect(&rcMinimized, &rc), "expected %s, got %s\n",
|
||||||
|
wine_dbgstr_rect(&rcMinimized), wine_dbgstr_rect(&rc));
|
||||||
|
GetClientRect(hwnd, &rc);
|
||||||
|
todo_wine
|
||||||
ok(EqualRect(&rcEmpty, &rc), "expected %s, got %s\n",
|
ok(EqualRect(&rcEmpty, &rc), "expected %s, got %s\n",
|
||||||
wine_dbgstr_rect(&rcEmpty), wine_dbgstr_rect(&rc));
|
wine_dbgstr_rect(&rcEmpty), wine_dbgstr_rect(&rc));
|
||||||
|
|
||||||
|
|
|
@ -1699,7 +1699,7 @@ static BOOL SWP_DoWinPosChanging( WINDOWPOS *pWinpos, RECT *old_window_rect, REC
|
||||||
|
|
||||||
WIN_GetRectangles( pWinpos->hwnd, COORDS_PARENT, old_window_rect, old_client_rect );
|
WIN_GetRectangles( pWinpos->hwnd, COORDS_PARENT, old_window_rect, old_client_rect );
|
||||||
*new_window_rect = *old_window_rect;
|
*new_window_rect = *old_window_rect;
|
||||||
*new_client_rect = (wndPtr->dwStyle & WS_MINIMIZE) ? *old_window_rect : *old_client_rect;
|
*new_client_rect = *old_client_rect;
|
||||||
|
|
||||||
if (!(pWinpos->flags & SWP_NOSIZE))
|
if (!(pWinpos->flags & SWP_NOSIZE))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue