Module: wine Branch: master Commit: ce119daf3e007791e121b6a2f6075f676cc2ba39 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ce119daf3e007791e121b6a2f6...
Author: Florian Köberle florian@fkoeberle.de Date: Sat Jan 24 18:06:38 2009 +0100
user32: Fix maxPosition of thick child windows.
---
dlls/user32/tests/win.c | 7 +++---- dlls/user32/winpos.c | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/dlls/user32/tests/win.c b/dlls/user32/tests/win.c index 6843f70..4e4b80d 100644 --- a/dlls/user32/tests/win.c +++ b/dlls/user32/tests/win.c @@ -5321,10 +5321,9 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM expectedPosY = rect.top; actualPosX = minmax->ptMaxPosition.x; actualPosY = minmax->ptMaxPosition.y; - todo_wine - ok(actualPosX == expectedPosX && actualPosY == expectedPosY, - "expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n", - expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name); + ok(actualPosX == expectedPosX && actualPosY == expectedPosY, + "expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n", + expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name);
break; } diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c index 6317005..c1da249 100644 --- a/dlls/user32/winpos.c +++ b/dlls/user32/winpos.c @@ -682,8 +682,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK); MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK); - - xinc = yinc = 0; + xinc = -rc.left; + yinc = -rc.top; } else {