Dynamic Toolbar items 
Author Message
 Dynamic Toolbar items

Hi NG'ers.

Simple question. How do I create dynamic toolbar buttons? I want to
allow my users to select a menu item to change the default appearance of
the toolbars - adding new buttons and spaces and removing them also. I
hope for a two listbox approach - left is current scene and right is
what they will end up with. As is done in LotusSuite applications for
example. any help or pointers to code would be much appreciated.

TIA

Phil.



Thu, 18 Apr 2002 02:00:00 GMT  
 Dynamic Toolbar items
Philip:

Take a look at SetButtonInfo() and GetButtonInfo() on CToolBarCtrl. You can
get to CToolBarCtrl by CToolBar::GetToolBarCtrl(). TO add a button, you can
use AddButtons(). To remove it, use DeleteButton().

--
Ajay Kalra

Microsoft VC++ MVP


Quote:
> Hi NG'ers.

> Simple question. How do I create dynamic toolbar buttons? I want to
> allow my users to select a menu item to change the default appearance of
> the toolbars - adding new buttons and spaces and removing them also. I
> hope for a two listbox approach - left is current scene and right is
> what they will end up with. As is done in LotusSuite applications for
> example. any help or pointers to code would be much appreciated.

> TIA

> Phil.



Thu, 18 Apr 2002 02:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. dynamic menu items question

2. Dynamic Menus and dialog items

3. dynamic tooltip for Items in a listctrl

4. The trick to getting items in dynamic menus enabled

5. Dynamic change menu item caption

6. dynamic dialog item creation and event code binding????

7. Change Items of CMenu dynamic

8. CMenu menu item dynamic caption change

9. How to remove dynamic menu item in MDI?

10. control ID for dynamic created control and menu item

11. range mapping for dynamic menu items

12. Help! Cannot gray a dynamic menu item

 

 
Powered by phpBB® Forum Software