From 88801958ec7f4ad8ea3b8e88fff62cc58c93eb57 Mon Sep 17 00:00:00 2001 From: "Guy L. Albertelli" Date: Tue, 31 Oct 2000 01:49:00 +0000 Subject: [PATCH] Ignore RBBS_BREAK style on first band. --- dlls/comctl32/rebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/comctl32/rebar.c b/dlls/comctl32/rebar.c index 10870210bd8..49c4c5be376 100644 --- a/dlls/comctl32/rebar.c +++ b/dlls/comctl32/rebar.c @@ -682,7 +682,7 @@ REBAR_Layout (HWND hwnd, LPRECT lpRect, BOOL notify, BOOL resetclient) else dobreak = (x + cx + cxsep > adjcx); /* 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)) { TRACE("Spliting to new row %d on band %u\n", row+1, i);