Print Page | Close Window

Toolbar customization...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=516
Printed Date: 23 December 2024 at 12:56pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Toolbar customization...
Posted By: ddlittle
Subject: Toolbar customization...
Date 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




Replies:
Posted By: SuperMario
Date 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


Posted By: ddlittle
Date 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..




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net