[comctrl32] Rebar size fix

Thomas Weidenmueller wine-patches at reactsoft.com
Sun Mar 26 05:30:03 CST 2006


Rebars without any bands should have a height/width of 0.

- Thomas

-- 
P.S.: Please let me know if there's something wrong with this patch or
tell me why it was rejected. Otherwise I'm going to assume the fixes
aren't appreciated or necessary because the implementation is considered
mature and stable.

-------------- next part --------------
Index: dlls/comctl32/rebar.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/rebar.c,v
retrieving revision 1.115
diff -u -r1.115 rebar.c
--- dlls/comctl32/rebar.c	9 Jan 2006 19:57:24 -0000	1.115
+++ dlls/comctl32/rebar.c	26 Mar 2006 11:23:37 -0000
@@ -1920,7 +1920,7 @@
 	y = clientcy;
     }
     if (infoPtr->dwStyle & CCS_VERT) {
-        if( x < REBAR_MINSIZE )
+        if( infoPtr->uNumBands != 0 && x < REBAR_MINSIZE )
             x = REBAR_MINSIZE;
 	infoPtr->calcSize.cx = x;
 	infoPtr->calcSize.cy = clientcy;
@@ -1929,7 +1929,7 @@
 	if (notify && (x != origheight)) infoPtr->fStatus |= NTF_HGHTCHG;
     }
     else {
-        if( y < REBAR_MINSIZE )
+        if( infoPtr->uNumBands != 0 && y < REBAR_MINSIZE )
             y = REBAR_MINSIZE;
 	infoPtr->calcSize.cx = clientcx;
 	infoPtr->calcSize.cy = y;



More information about the wine-patches mailing list