24-bit Color Depth Toolbar Buttons
-
This main seem a little trivial but it is something I am having a problem with. Is there anything special you have to do to load a 24-bit image to use as a toolbar. I have tried a lot of diffent method and all I get is some black squares in place of the buttons. The only thing that works is to do a m_wndToolbar.GetToolbarCtrl().SetImageList(&m_images); SetButtons(nButtonIDs, 14); where m_images was created m_images.Create(IDB_TOOLBARBITMAP, 16,1, RGB(255,0,255)); but even this results in my images being set down to 16 color. Does anyone know if I am missing something important here or possiblly a way around this. Any help would be appreciated. Joe
-
This main seem a little trivial but it is something I am having a problem with. Is there anything special you have to do to load a 24-bit image to use as a toolbar. I have tried a lot of diffent method and all I get is some black squares in place of the buttons. The only thing that works is to do a m_wndToolbar.GetToolbarCtrl().SetImageList(&m_images); SetButtons(nButtonIDs, 14); where m_images was created m_images.Create(IDB_TOOLBARBITMAP, 16,1, RGB(255,0,255)); but even this results in my images being set down to 16 color. Does anyone know if I am missing something important here or possiblly a way around this. Any help would be appreciated. Joe
Try reading this article: http://codeguru.earthweb.com/toolbar/HiColorToolbar.shtml It might help...