Click to See Complete Forum and Search --> : CToolbar Icons


Scott Bauer
April 20th, 1999, 05:18 PM
How would I load an alternate bmp to a toolbar at run time? I need to be able to load the images off of the disk? It seems like a simple task but I've been banging my head for hours and I can't find a way to do it.

Thanks
Scott

Hypix
February 10th, 2002, 04:34 AM
You can use the GetToolBarCtrl-Method of the m_wndToolBar-Member of CMainFrm to get the CToolBarCtrl-Object from your Toolbar. Use the GetImageList-Method of this Object to customize the Icons. See also the DeleteButton- and InsertButton-Methods of CTooBarCtrl...