Commit ce119daf authored by Florian Köberle's avatar Florian Köberle Committed by Alexandre Julliard

user32: Fix maxPosition of thick child windows.

parent dc1a7113
...@@ -5321,10 +5321,9 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM ...@@ -5321,10 +5321,9 @@ static LRESULT WINAPI test_thick_child_size_winproc(HWND hwnd, UINT msg, WPARAM
expectedPosY = rect.top; expectedPosY = rect.top;
actualPosX = minmax->ptMaxPosition.x; actualPosX = minmax->ptMaxPosition.x;
actualPosY = minmax->ptMaxPosition.y; actualPosY = minmax->ptMaxPosition.y;
todo_wine ok(actualPosX == expectedPosX && actualPosY == expectedPosY,
ok(actualPosX == expectedPosX && actualPosY == expectedPosY, "expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n",
"expected maxPosition (%d/%d), actual maxPosition (%d/%d) for %s\n", expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name);
expectedPosX, expectedPosY, actualPosX, actualPosY, test_thick_child_name);
break; break;
} }
......
...@@ -682,8 +682,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, ...@@ -682,8 +682,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos,
MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK);
MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK); MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXMAXTRACK);
MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK); MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYMAXTRACK);
xinc = -rc.left;
xinc = yinc = 0; yinc = -rc.top;
} }
else else
{ {
......
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