Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS General Discussion » Bitmaps not showing when deriving from CExtToolControlBar Collapse All
Subject Author Date
Dave Kymlicka Feb 28, 2005 - 2:27 PM

When deriving our toolbars from CExtToolControlBar, all toolbar button bitmaps are not visible: all I can see are the outline of each toolbar, plus the chevron at the end.
Everything else on our toolbars are OK: the right # of buttons, tooltips are correct, ID’s are correct, correct results from a button push... everything but the bitmaps.


Not sure if this is relevant info, but all our toolbar resources are stored in other files: some always remain loaded (.enu), and some are loaded (.dll) only during creation of toolbars , then released.


If I change our toolbar class to derive from CToolBar instead of CExtToolControlBar, I can see the bitmaps, and everything works normal. This demonstrates that resources are available, images load OK, ID’s are OK, etc.


I haven’t integrated command manager to display menu bitmaps yet, and I’m not sure if there is some special command manager initialization that could be affecting the toolbars.


Any suggestions?
Also, are any docs available that explain command manager usage, functionality and features?

Technical Support Mar 1, 2005 - 4:59 AM

It seems there is only one case when you cannot see images in toolbars: you probably forgot to initialize the command manager for your main frame or dialog window. If you don’t call g_CmdManager->ProfileSetup() with specifying HWND of your main frame or dialog window in it, then both toolbars and popup menus will not be able to find command descriptions (with icons, menu texts, tip texts etc.) in the command manager.

If it is not the case, please send us a test project and we will help you.

Dave Kymlicka Mar 1, 2005 - 6:32 PM

Yes, that fixed the problem. Thanks!