Professional UI Solutions
Site Map   /  Register


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 » MainFrm CExtResizableDialog CExtMenuControlBar Collapse All
Subject Author Date
Hyeon Soo Ryu Jun 25, 2009 - 2:22 AM

MainFrm  calls  the Modal dialog ( using the CExtResizableDialog  )

and.  In CExtResizableDialog  , Create the MenuBar ( using CExtMenuControlBar)  and append the menubar


the menubar is attached to MainFrm  and CExtResizableDialog  too  ˆˆ;;;

What is the Problem?

Help me please.....Thanks.

Technical Support Jun 28, 2009 - 10:45 AM

There is an important limitation related to the CExtMenuControlBar class: each menu bar window must be the only one menu bar in scope of one command profile of the Prof-UIS command manager.

The main frame window in your application initializes some named command profile and creates the menu bar. The dialog window. which also has its own menu bar, should initialize its own command profile with unique name. You should invoke the CExtCmdManager::ProfileSetup() method in dialog’s OnInitDialog() virtual method and the CExtCmdManager::ProfileDestroy() method in dialog’s OnOK() and OnCancel() virtual methods.