scrollbar: fix SBS_SIZEBOX*ALIGN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



        Huw Davies <huw@xxxxxxxxxxxxxxx>
        Only honour SBS_SIZEBOX*ALIGN styles if SBS_SIZE{GRIP,BOX} is set.
-- 
Huw Davies
huw@xxxxxxxxxxxxxxx
Index: controls/scroll.c
===================================================================
RCS file: /home/wine/wine/controls/scroll.c,v
retrieving revision 1.72
diff -u -r1.72 scroll.c
--- controls/scroll.c	2 Dec 2003 05:27:54 -0000	1.72
+++ controls/scroll.c	2 Dec 2003 11:23:39 -0000
@@ -1278,17 +1278,16 @@
     }
 
 
-    if (lpCreate->style & SBS_SIZEBOXTOPLEFTALIGN)
+    if (lpCreate->style & (SBS_SIZEGRIP | SBS_SIZEBOX))
     {
-        MoveWindow( hwnd, lpCreate->x, lpCreate->y, GetSystemMetrics(SM_CXVSCROLL)+1,
-                    GetSystemMetrics(SM_CYHSCROLL)+1, FALSE );
-    }
-    else if(lpCreate->style & SBS_SIZEBOXBOTTOMRIGHTALIGN)
-    {
-        MoveWindow( hwnd, lpCreate->x+lpCreate->cx-GetSystemMetrics(SM_CXVSCROLL)-1, 
-                    lpCreate->y+lpCreate->cy-GetSystemMetrics(SM_CYHSCROLL)-1,
-                    GetSystemMetrics(SM_CXVSCROLL)+1,
-                    GetSystemMetrics(SM_CYHSCROLL)+1, FALSE );
+        if (lpCreate->style & SBS_SIZEBOXTOPLEFTALIGN)
+            MoveWindow( hwnd, lpCreate->x, lpCreate->y, GetSystemMetrics(SM_CXVSCROLL)+1,
+                        GetSystemMetrics(SM_CYHSCROLL)+1, FALSE );
+        else if(lpCreate->style & SBS_SIZEBOXBOTTOMRIGHTALIGN)
+            MoveWindow( hwnd, lpCreate->x+lpCreate->cx-GetSystemMetrics(SM_CXVSCROLL)-1, 
+                        lpCreate->y+lpCreate->cy-GetSystemMetrics(SM_CYHSCROLL)-1,
+                        GetSystemMetrics(SM_CXVSCROLL)+1,
+                        GetSystemMetrics(SM_CYHSCROLL)+1, FALSE );
     }
     else if (lpCreate->style & SBS_VERT)
     {


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux