comctl32: Rebar size fix.
Rebars without any bands should have a height/width of 0.
diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c
index 81633d6..1eb76e1 100644
--- a/dlls/comctl32/rebar.c
+++ b/dlls/comctl32/rebar.c
@@ -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;