RE: Change icon on toolbar button?
- Posted by jordah ferguson <jorfergie03 at yahoo.com> Jun 22, 2002
- 490 views
Mike, Win32lib has three image lists already created for the Flattoolbar, so to make your change you'll have to get Dirty. As i don't think a Normal Toolbar in win32lib has a pre - made Image List. A FlatToolbar is just a normal toolbar with TBS_FLAT so it shouldn't matter. Also you have an option of using an Image List or not cause toolbars have their internal way of storing images. Image Lists just add more flexibility to the way u use images. I'm going home to create an example of changing bitmaps or images on toolbars. I'll email it to you incase your question hasn't been answered jordah ferguson Mike wrote: > Derek, Matt or other Win32 experts, > > I am using a (normal) toolbar in a window. Is there someway of changing > the bitmap that a button is created with? > I have tried using.. > > sendMessage(TB, TB_CHANGEBITMAP, iControl, iIcon) > > ..but it did not work. In the win32.hlp file it looked like I might have > > to use an imagelist. > How does this work for normal toolbars (I know it works for flat > toolbars)? > > TIA > > Mike > > >