Click to See Complete Forum and Search --> : Refresh Toolbar


Steve Chia
April 27th, 1999, 08:26 PM
Hi,

I would like to know how I can refresh my toolbar when I change my resource using a resource DLL. I'm using a hot/cold toolbar style with text below the icons. The text is supposed to be changed when I change to another resource.

Thanks!!

Steve

leolin@
April 27th, 1999, 10:01 PM
Create the toolbar using CToolBar, and then call CToolBar::GetToolBarCtrl to get access to the CToolBarCtrl member functions.


Create the toolbar using CToolBarCtrl's constructor.
To use bitmap images for buttons, add the button bitmaps to the toolbar by calling AddBitmap.


To use images displayed from an image list for buttons, specify the image list by calling SetImageList, SetHotImageList, or SetDisabledImageList.


To use string labels for buttons, add the strings to the toolbar by calling AddString and/or AddStrings.
leolin