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 Tech Support » CExtToolControlBar doesn't display icons Collapse All
Subject Author Date
Timothy Anderson Dec 8, 2005 - 4:45 PM

I simply created an app from app wiz, added a menu bar and a toolbar both using the IDR_MAINFRAME resource. No icons. What other step is required to get the icons displayed?


I hate to say this, but it isn’t particularly obvious what calls need to be inserted into an app built from scratch with app wiz. I’ve gone over the MDI application and whatever it’s doing that I’m not doing isn’t obvious.


I’m not doing any profile saving/restoring/whatever. I simply added a toolbar to a bare bones app.

Technical Support Dec 9, 2005 - 7:11 AM

The application generated with the Prof-UIS Application Wizard should work without any problems, including displaying icons in toolbars. It seems you made some changes, if not, please let us know.

You cannot see images in toolbars only if you forgot to initialize the command manager for your main frame or dialog window. If you don’t call g_CmdManager->ProfileSetup() and/or g_CmdManager->ProfileWndAdd() code during the application startup 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 and etc.) in the command manager. So, just make sure that it has been done.

Timothy Anderson Dec 9, 2005 - 2:10 PM

Oh boy, more dope slaps to self!

Timothy Anderson Dec 8, 2005 - 6:13 PM

Apparently I can’t get away from using the profile entry points. I’m hoping the profile stuff is fairly straight forward as I have to be able to override all registry reads/writes because of rediculous security concerns from some overly paranoid users.

Technical Support Dec 9, 2005 - 7:16 AM

Using the profile does not mean that it is automatically saved into the registry. Saving/Loading to/from the registry happens when you invoke the CExtControlBar::ProfileBarStateLoad(), CExtControlBar::ProfileBarStateSave() or g_CmdManager->SerializeState() methods. We have the StateInFile sample application that demonstrates how to load/save the user interface state from/to a disk file not using the registry. So, please take a look at it. That that may resolve the issue with the registry.

Timothy Anderson Dec 9, 2005 - 2:10 PM

Thanks!