How to disable automatic COMMAND_UI routing?
-
Hello, I wonder how to disable the automaic menu enable/disable for CFrameWnd mechanism in eVC 4.0, I thought it could be done by setting the m_bAutoMenuEnable to FALSE? Am I wrong with that? How can I accomplish it to stop that automatism? Thnaks a lot... Martin
-
Hello, I wonder how to disable the automaic menu enable/disable for CFrameWnd mechanism in eVC 4.0, I thought it could be done by setting the m_bAutoMenuEnable to FALSE? Am I wrong with that? How can I accomplish it to stop that automatism? Thnaks a lot... Martin
Thank you, found out myself! It´s always the same: Searching two hours for a solution, then decide to ask the forum, then try again and find solution self within 2 minutes! Here is the solution: Subclass a CMyMenu from CMenu and overwrite "void OnUpdateCmdUI(CFrameWnd* pTarget, BOOL bDisableIfNoHndler)" in this new class. In this function do nothing, so the automatism doesn´t work. Greez...