USER32: CW_USEDEFAULT

Ulrich Czekalla ulrich.czekalla at utoronto.ca
Wed Jan 19 11:36:08 CST 2005


ChangeLog:
        Ulrich Czekalla <ulrich at codeweavers.com>
        Handle case when only height is set to CW_USEDEFAULT
-------------- next part --------------
Index: windows/win.c
===================================================================
RCS file: /home/wine/wine/windows/win.c,v
retrieving revision 1.255
diff -u -p -r1.255 win.c
--- windows/win.c	23 Dec 2004 17:21:05 -0000	1.255
+++ windows/win.c	19 Jan 2005 17:35:37 -0000
@@ -824,6 +824,13 @@ static void WIN_FixCoordinates( CREATEST
                     cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
                 }
             }
+            /* Handle case where only the cy values is set to default */
+            else if (cs->cy == CW_USEDEFAULT || cs->cy == CW_USEDEFAULT16)
+            {
+                RECT r;
+                SystemParametersInfoA( SPI_GETWORKAREA, 0, &r, 0);
+                cs->cy = (((r.bottom - r.top) * 3) / 4) - cs->y;
+            }
         }
     }
     else


More information about the wine-patches mailing list