Ignore RBBS_BREAK style on first band.
This commit is contained in:
parent
1746d5fe96
commit
88801958ec
|
@ -682,7 +682,7 @@ REBAR_Layout (HWND hwnd, LPRECT lpRect, BOOL notify, BOOL resetclient)
|
||||||
else
|
else
|
||||||
dobreak = (x + cx + cxsep > adjcx);
|
dobreak = (x + cx + cxsep > adjcx);
|
||||||
/* This is the check for whether we need to start a new row */
|
/* This is the check for whether we need to start a new row */
|
||||||
if ( (lpBand->fStyle & RBBS_BREAK) ||
|
if ( ( (lpBand->fStyle & RBBS_BREAK) && (i != 0) ) ||
|
||||||
( ((dwStyle & CCS_VERT) ? (y != 0) : (x != 0)) && dobreak)) {
|
( ((dwStyle & CCS_VERT) ? (y != 0) : (x != 0)) && dobreak)) {
|
||||||
TRACE("Spliting to new row %d on band %u\n", row+1, i);
|
TRACE("Spliting to new row %d on band %u\n", row+1, i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue