(resend) REBAR_Layout fix

Matt Chapman matthewc at cse.unsw.edu.au
Thu Feb 26 05:58:16 CST 2004


REBAR_Layout should respect the minimum size of bands even when
RBBS_FIXEDSIZE is not set (I have verified the behaviour with
Control Spy).

Matt

-------------- next part --------------
Index: dlls/comctl32/rebar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/rebar.c,v
retrieving revision 1.83
diff -u -r1.83 rebar.c
--- dlls/comctl32/rebar.c	9 Feb 2004 22:07:43 -0000	1.83
+++ dlls/comctl32/rebar.c	21 Feb 2004 07:03:15 -0000
@@ -1497,10 +1497,7 @@
 
 	/* separator from previous band */
 	cxsep = (cntonrow == 0) ? 0 : SEP_WIDTH;
-
-	/* Header: includes gripper, text, image */
-	cx = lpBand->cxHeader;
-	if (lpBand->fStyle & RBBS_FIXEDSIZE) cx = lpBand->lcx;
+	cx = lpBand->lcx;
 
 	if (infoPtr->dwStyle & CCS_VERT)
 	    dobreak = (y + cx + cxsep > adjcy);


More information about the wine-patches mailing list