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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't restore my toolbar

Status
Not open for further replies.

gavrilov

Programmer
Sep 25, 2000
1
RU
I created my float toolbar manually (new CToolBar, CreateEx, GetToolBarCtrl().AddButtons). The toolbar was created with the TBSTYLE_WRAPABLE style.
Then I saved current toolbar state (window position and number of rows) in *.ini file.
But when I try to restore the toolbar state (SetWindowPos, GetToolBarCtrl().SetRows), only position is restored. The toolbar has only one row.
The function CToolBarCtrl::RestoreState (after SaveState) didn't work in my case.
How can I restore a toolbar's position and number of rows? [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top