comctl32: Rebar size fix.
Rebars without any bands should have a height/width of 0.
This commit is contained in:
parent
5072fd440a
commit
870d37ff60
|
@ -1920,7 +1920,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient)
|
||||||
y = clientcy;
|
y = clientcy;
|
||||||
}
|
}
|
||||||
if (infoPtr->dwStyle & CCS_VERT) {
|
if (infoPtr->dwStyle & CCS_VERT) {
|
||||||
if( x < REBAR_MINSIZE )
|
if( infoPtr->uNumBands != 0 && x < REBAR_MINSIZE )
|
||||||
x = REBAR_MINSIZE;
|
x = REBAR_MINSIZE;
|
||||||
infoPtr->calcSize.cx = x;
|
infoPtr->calcSize.cx = x;
|
||||||
infoPtr->calcSize.cy = clientcy;
|
infoPtr->calcSize.cy = clientcy;
|
||||||
|
@ -1929,7 +1929,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient)
|
||||||
if (notify && (x != origheight)) infoPtr->fStatus |= NTF_HGHTCHG;
|
if (notify && (x != origheight)) infoPtr->fStatus |= NTF_HGHTCHG;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if( y < REBAR_MINSIZE )
|
if( infoPtr->uNumBands != 0 && y < REBAR_MINSIZE )
|
||||||
y = REBAR_MINSIZE;
|
y = REBAR_MINSIZE;
|
||||||
infoPtr->calcSize.cx = clientcx;
|
infoPtr->calcSize.cx = clientcx;
|
||||||
infoPtr->calcSize.cy = y;
|
infoPtr->calcSize.cy = y;
|
||||||
|
|
Loading…
Reference in New Issue