[ros-diffs] [gvg] 17764: Use max tracking size instead of maximized size to limit window size.

gvg at svn.reactos.com gvg at svn.reactos.com
Fri Sep 9 15:35:05 CEST 2005


Use max tracking size instead of maximized size to limit window size.
Fixes bug 721.
Modified: trunk/reactos/lib/user32/windows/defwnd.c
  _____  

Modified: trunk/reactos/lib/user32/windows/defwnd.c
--- trunk/reactos/lib/user32/windows/defwnd.c	2005-09-09 12:22:25 UTC
(rev 17763)
+++ trunk/reactos/lib/user32/windows/defwnd.c	2005-09-09 13:35:02 UTC
(rev 17764)
@@ -809,15 +809,15 @@

 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050909/47bc0a02/attachment.html


More information about the Ros-diffs mailing list