DrawScrollBar fix: allocate internal info

Rein Klazes wijn at wanadoo.nl
Mon Jun 20 02:29:07 CDT 2005


Hi,

This is a fix for bug #3065 but also for any program that calls
CreateWindow with WS_HSCROLL/WS_VSCROLL set and relies on that to draw
the scrollbars: it won't, except some grey squares.

Changelog:

dlls/user	: scroll.c

In SCROLL_DrawScrollbar allocate the internal info if needed.

Rein.
-------------- next part --------------
--- wine/dlls/user/scroll.c	2005-05-05 10:26:29.000000000 +0200
+++ mywine/dlls/user/scroll.c	2005-06-20 09:17:19.000000000 +0200
@@ -667,7 +667,7 @@ void SCROLL_DrawScrollBar( HWND hwnd, HD
     INT arrowSize, thumbSize, thumbPos;
     RECT rect;
     BOOL vertical;
-    SCROLLBAR_INFO *infoPtr = SCROLL_GetInternalInfo( hwnd, nBar, FALSE );
+    SCROLLBAR_INFO *infoPtr = SCROLL_GetInternalInfo( hwnd, nBar, TRUE );
     BOOL Save_SCROLL_MovingThumb = SCROLL_MovingThumb;
     DWORD style = GetWindowLongW( hwnd, GWL_STYLE );
 


More information about the wine-patches mailing list