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 » CExtDynamicControlBar::OnInitDbsMenu Added Commands Collapse All
Subject Author Date
John Ritzenthaler Feb 12, 2010 - 3:52 PM

If I add menu commands in CExtDynamicControlBar::OnInitDbsMenu(), where do I catch the selected command?


Do I override WindowProc() and catch WM_COMMAND?

Technical Support Feb 13, 2010 - 11:27 AM

Yes, you should handle a WM_COMMAND message in the WindowProc() virtual method. Please take a look at the source code of the CExtDynamicControlBar::WindowProc() method. There are several ID_EXT_DYN_BAR_*** standard commands handled there.