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 » CExtResizableDialog & command routing Collapse All
Subject Author Date
Leon Miller Mar 9, 2006 - 8:21 PM

I have a dialog based app derived from CExtResizableDialog (using Win XP/ VS 7.1 / ProfUIS 2.52)

I have 3 different menus: one that is derived from CExtMenuControlBar, another attached to a CExtButton, and a CExtPopupMenuWnd that is used as a right-click menu.

It seems that the my command update handlers (set up using standard MFC ON_UPDATE_COMMAND_UI macro) for the menu associated with the CExtButton & the CExtPopupMenuWnd do not get called prior to the menu being displayed on the screen! They *DO* get called after the menu item is selected.

The command update handlers for the menu derived from CExtMenuControlBar behave perfectly and as expected --> The command update handlers get called prior to the menu being displayed on the screen!

Any insights to my error?

Thank you!


Technical Support Mar 10, 2006 - 8:15 AM

You just described types of menus in your application and the problem with them. What we additionally need is:

1) If your application is frame-based or dialog-based?

2) A short design description of the main window where your menus are used. We need to know window details starting from the top main window and up to the windows where the button menu and/or context menu cause the problem.

3) Which class implements updating methods for menus? Is it a single class whose message map affects menu commands?


Leon Miller Mar 12, 2006 - 12:38 PM

Sorry about the vague question! I was putting together a demo app to demonstrate my problems, but the demo worked as expected!

Seems I was using the command manager improperly, I apologize for wasting your time!