Patch: SBS_SIZEBOX (scrollbar)

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

 



Hi,

Just fixed a little feature that was annoying me in programs that use the
Scrollbar control (rather than NC scrollbars). Just copied it over from the
NC file.

Changelog:
- Add support for SBS_SIZEBOX style of scrollbar
Index: wine/controls/scroll.c
===================================================================
RCS file: /home/wine/wine/controls/scroll.c,v
retrieving revision 1.56
diff -u -r1.56 scroll.c
--- wine/controls/scroll.c	10 Oct 2002 17:53:04 -0000	1.56
+++ wine/controls/scroll.c	20 Nov 2002 02:37:38 -0000
@@ -815,6 +815,12 @@
     if(IsRectEmpty(&rect))
       goto END;
 
+    if ((nBar == SB_CTL) && (wndPtr->dwStyle & SBS_SIZEBOX))
+    {
+        FillRect( hdc, &rect, GetSysColorBrush(COLOR_SCROLLBAR) );
+            goto END;
+    }
+
     if (Save_SCROLL_MovingThumb &&
         (SCROLL_TrackingWin == hwnd) &&
         (SCROLL_TrackingBar == nBar))
@@ -1207,11 +1213,6 @@
 		infoPtr->flags = ESB_DISABLE_BOTH;
 	    }
 
-            if (lpCreat->style & SBS_SIZEBOX)
-            {
-                FIXME("Unimplemented style SBS_SIZEBOX.\n" );
-                return 0;
-            }
 	    if (lpCreat->style & SBS_VERT)
             {
                 if (lpCreat->style & SBS_LEFTALIGN)

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

  Powered by Linux