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 » CExtCmdManager bug Collapse All
Subject Author Date
Offer Har Aug 5, 2006 - 8:13 AM

Hi,

I have a popup menu.
when the menu is activated, the commands in it are saved, and the next time the application loads, it crashes while looking for these commands.
How can this be fixed?
What is the task of this class? where can i find comprehensive documentation of what it does?

Thanks.

Technical Support Aug 7, 2006 - 9:00 AM

Prof-UIS menus and toolbars are based on CExtCmdItem command description objects stored in the CExtCmdProfile command profile inside the CExtCmdManager command manager (accessed with the g_CmdManager global smart pointer variable). This design allows Prof-UIS menus to use command icons specified in toolbar resources automatically. This design also allows you to track the command invocation statistics and implement expandable menus. First of all, please ensure you have updated the command manager from all the menu/toolbar resources used in your application. Then make sure the your initialization/shutdown code is implemented correctly (exactly like in the CMainFrame::OnCreate()/CMainFrame::DestroyWindow() methods of our simplest samples: SDI, MDI, SDIDOCVIEW and <span class="newgreen">MDIDOCVIEW</a>. You can learn more about the command manager and GUI persistence in the article Getting Started with Prof-UIS.