Asked By Bob Smith
21-Jan-10 08:40 PM

Within a Rebar control I have three bands which start as
Band1 | Band2 | Band3
At some point, the user moves each band onto its own line as in
Band1
Band2
Band3
Next, the user wants to change the font in Band2 which will change the
cxMinChild and cyMinChild properties of that band among others, so I
create a new REBARBANDINFO struc and send it to the Rebar control via a
RB_SETBANDINFO message using the index of Band2 obtained from RB_IDTOINDEX.
This has the desirable effect of redrawing Band2, but has the
undesirable side effect of merging Band1 and Band2 back onto the same
line. Thus the Rebar ctrl ends up looking like
Band1 | Band2
Band3
Q. In general, how can I preserve the original configuration which
might also include extra spacing between bands on the same line because
the user repositioned some bands via their grippers?
I have read the Community Content under "About Rebar Controls" in MSDN
but did not find it helpful in this situation.
I'd like this to work on XP and all later systems.
--
_________________________________________
Bob Smith -- bsmith@sudleydeplacespam.com
To reply to me directly, delete "despam".