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 » About __PROF_UIS_PROJECT_CMD_PROFILE_NAME Collapse All
Subject Author Date
tera t Apr 13, 2007 - 1:32 AM

Hi

In one application.
When there is plural DIALOG.
May I use plural CMD_PROFILE?

DialogA - __PROF_UIS_PROJECT_CMD_PROFILE_NAMEA

DialogB - __PROF_UIS_PROJECT_CMD_PROFILE_NAMEB

 I do not understand a meaning to use well.

Technical Support Apr 13, 2007 - 11:50 AM

Yes, you can create two dialogs and each of them will be based on its unique command profile name. In each dialog, invoke g_CmdManager->ProfileSetup() from its OnInitDialog() virtual method and specify its unique profile name and dialog’s window handle. Besides These unique command profiles for each dialog are also needed if the dialog has a menu bar. The CExtMenuControlBar class requires that the only one instance of this class should be used in scope of one command manager’s profile. If any of your dialog windows become destroyed and created again at runtime, you should also remove the command manager’s profile when the dialog gets destroyed (i.e. invoke g_CmdManager->ProfileRemove() both in OnOK() and OnCancel() of the dialog).