Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wrap ToolBar to keep all buttons visible

Status
Not open for further replies.

StandaK

Programmer
Feb 14, 2003
22
CZ
Hi all,
I'm really tired of looking for the solution of this annoying problem:
I have MFC application with CToolBar. In fact, I have CReBar and two CToolBars in it. I display few buttons with text in these toolbars (in single line). When user changes the size of main window and the width is not enough, I want toolbar to automatically wrap to more rows so that all buttons stay visible.

I don't want to use chevrons or floating toolbars. I create my toolbars with TBSTYLE_WRAPABLE and I tried to call SetRows(...), but it had no effect. Yes, it created as many rows as requested, but all buttons stayed in the first row even though if the size was too small to show them all.

Thank you all for any suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top