REBAR_Layout should respect the minimum size of bands even when
RBBS_FIXEDSIZE is not set.
This commit is contained in:
parent
2ae461e400
commit
766fc7cc9c
|
@ -1497,10 +1497,7 @@ REBAR_Layout (REBAR_INFO *infoPtr, LPRECT lpRect, BOOL notify, BOOL resetclient)
|
||||||
|
|
||||||
/* separator from previous band */
|
/* separator from previous band */
|
||||||
cxsep = (cntonrow == 0) ? 0 : SEP_WIDTH;
|
cxsep = (cntonrow == 0) ? 0 : SEP_WIDTH;
|
||||||
|
cx = lpBand->lcx;
|
||||||
/* Header: includes gripper, text, image */
|
|
||||||
cx = lpBand->cxHeader;
|
|
||||||
if (lpBand->fStyle & RBBS_FIXEDSIZE) cx = lpBand->lcx;
|
|
||||||
|
|
||||||
if (infoPtr->dwStyle & CCS_VERT)
|
if (infoPtr->dwStyle & CCS_VERT)
|
||||||
dobreak = (y + cx + cxsep > adjcy);
|
dobreak = (y + cx + cxsep > adjcy);
|
||||||
|
|
Loading…
Reference in New Issue