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 » m_bAutoMenuEnable not affecting Toolbox menuitems Collapse All
Subject Author Date
Dennis Ioakim Mar 4, 2011 - 4:27 AM

Hi


i have set m_bAutoMenuEnable = FALSE in my mainframe’s constructor, so that my menu items that have no ON_COMMAND handler are displayed as enabled and not grayed.


When using Profuis menus and Toolbox in particular (CExtToolBoxWnd) the menuitems are grayed no matter what the m_bAutoMenuEnable is.


Is there a m_bAutoMenuEnable equivalent in ProfUis?

If not, how can i overcome this problem?


Thanx in advance.

Technical Support Mar 4, 2011 - 10:28 AM

Prof-UIS menus are always controlled by the MFC’s command updating mechanism. You can override the OnCmdMsg() virtual method in your main frame class, invoke the parent class method and then simply return TRUE. This will enable all the menu items.