Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Toolbar customization...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Toolbar customization...

 Post Reply Post Reply
Author
Message
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Topic: Toolbar customization...
    Posted: 11 March 2004 at 8:53am

I hope this is an easy question, but how can I add ALL the toolbar buttons to the customize box?  I also would like to do it for menus, so that the user could create his own menu based on toolbar options.  Is that even possible?  DevStudio can do it.

Thanks!

David Little

Houston, Texas

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2004 at 9:39am
In the ActiveX version you just add all of the controls to the DesignerControls member of the CommandBars control and then you need to call the EnableCustomization method so the customize feature will be enabled.  In ActiveX, any controls in the collection of DesignerControls will be in the customize window.  Maybe you can translate this to MFC version
Back to Top
ddlittle View Drop Down
Senior Member
Senior Member


Joined: 19 February 2004
Location: United States
Status: Offline
Points: 132
Post Options Post Options   Thanks (0) Thanks(0)   Quote ddlittle Quote  Post ReplyReply Direct Link To This Post Posted: 11 March 2004 at 1:56pm

Thanks!

The MFC version (for REAL programmers ) is:

CXTPCustomizeCommandsPage* pCommands = dlg.GetCommandsPage();

pCommands->AddToolbarCategory("Mainframe",IDR_MAINFRAME);

// repeat for every toolbar....

 

Thanks again..

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.109 seconds.