From d7ba12c77ac5680371f41d778defed57ce07704b Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Fri, 21 Jan 2005 17:03:41 +0000 Subject: [PATCH] Max tracking size in WM_GETMINMAXINFO should take into account the window frame. --- windows/winpos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/winpos.c b/windows/winpos.c index 5ac1b7faf03..80042c8d453 100644 --- a/windows/winpos.c +++ b/windows/winpos.c @@ -760,8 +760,8 @@ void WINPOS_GetMinMaxInfo( HWND hwnd, POINT *maxSize, POINT *maxPos, } MinMax.ptMinTrackSize.x = GetSystemMetrics(SM_CXMINTRACK); MinMax.ptMinTrackSize.y = GetSystemMetrics(SM_CYMINTRACK); - MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXSCREEN); - MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYSCREEN); + MinMax.ptMaxTrackSize.x = GetSystemMetrics(SM_CXSCREEN) + 2*GetSystemMetrics(SM_CXFRAME); + MinMax.ptMaxTrackSize.y = GetSystemMetrics(SM_CYSCREEN) + 2*GetSystemMetrics(SM_CYFRAME); if (HAS_DLGFRAME( style, exstyle )) {