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 » System menu item been disabled in CExtResizableDialog Collapse All
Subject Author Date
Mofei Abudura Nov 3, 2008 - 3:01 AM

My dialog based MFC application’s main dialog window is derived from class CExtResizableDialog, but the menu item in the default system menu named "About MyProgram" is disabled. But if you pop up the system menu form task bar, you will find the menu item is enabled. Does any body know why?


Some more info. In the dialog’ s properties tab, following style is selected: Title bar, System menu, Minimize box, Maximize box.


 

Mofei Abudura Nov 3, 2008 - 6:32 PM

Got it, thanks for your reply.

Technical Support Nov 3, 2008 - 6:55 AM

Please add a command hander for your About command using the ON_COMMAND message map entry in your CExtResizableDialog-derived class. The menu command items in Prof-UIS popup menus are based on MFC’s command routing mechanism. If there is no command handler for some command item in menu, it becomes disabled. Prof-UIS replaces the window system menus displayed from the window caption but it cannot replace system menus displayed from Task Bar buttons because they often displayed without window notifications.