Toolbars in a pane |
Post Reply |
Author | |
yoavo
Senior Member Joined: 29 February 2004 Location: Israel Status: Offline Points: 140 |
Post Options
Thanks(0)
Posted: 06 February 2006 at 1:02am |
Hi, Is there a way to insert a toolbar to a pane, and the toolbar will support customization ? (In the "Advanced" sample I couldnt add/remove commands to the toolbars of the panes). Yoav.
|
|
AliRafiee
Groupie Joined: 06 May 2004 Status: Offline Points: 32 |
Post Options
Thanks(0)
|
Go back to the Advanced example. Load up DockingFrame.cpp First comment out the line: (in OnCreate method) pCommandBar->GetCommandBarOptions()->bShowExapndButton Always = FALSE; this alone will get the customize drop down button do dispaly. Next add the following line to Message map ON_COMMAND(XTP_ID_CUSTOMIZE, OnCustomize) and the method void CDockingFrame::OnCustomize() // instanciate the customize dialog // add the options page to the customize dialog. // add the commands page to the customize dialog. // initialize the commands page page. // display the customize dialog. Don't forget to add afx_msg void OnCustomize(); to the class definition. Now the Docking Frame on the right hand side has the customize. Good luck Ali Rafiee |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |