From 61d669da330cb31003efe3ce133ba187b9e4cb3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 9 Sep 2005 13:35:02 +0000 Subject: [PATCH] Use max tracking size instead of maximized size to limit window size. Fixes bug 721. svn path=/trunk/; revision=17764 --- reactos/lib/user32/windows/defwnd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/lib/user32/windows/defwnd.c b/reactos/lib/user32/windows/defwnd.c index 79651e1263b..2756baa7a04 100644 --- a/reactos/lib/user32/windows/defwnd.c +++ b/reactos/lib/user32/windows/defwnd.c @@ -809,15 +809,15 @@ DefWndHandleSysCommand(HWND hWnd, WPARAM wParam, POINT Pt) LRESULT DefWndHandleWindowPosChanging(HWND hWnd, WINDOWPOS* Pos) { - POINT maxSize, minTrack; + POINT maxTrack, minTrack; LONG style = GetWindowLongA(hWnd, GWL_STYLE); if (Pos->flags & SWP_NOSIZE) return 0; if ((style & WS_THICKFRAME) || ((style & (WS_POPUP | WS_CHILD)) == 0)) { - WinPosGetMinMaxInfo(hWnd, &maxSize, NULL, &minTrack, NULL); - Pos->cx = min(Pos->cx, maxSize.x); - Pos->cy = min(Pos->cy, maxSize.y); + WinPosGetMinMaxInfo(hWnd, NULL, NULL, &minTrack, &maxTrack); + Pos->cx = min(Pos->cx, maxTrack.x); + Pos->cy = min(Pos->cy, maxTrack.y); if (!(style & WS_MINIMIZE)) { if (Pos->cx < minTrack.x) Pos->cx = minTrack.x;