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.