August 25th, 2009, 11:54 PM
Routing MFC toolbar command message to a dialog
I have an MDI app. The app contains a CView with an embedded dialog that hosts an ActiveX control.
I can handle the MainFrame toolbar click events no problem. How can I propagate the command messages to be handled by the embedded dialog instead of the view?
I have tried overriding and forwarding OnCmdTarget to the dialog, but the application crashes. I also tried calling UpdateDialogControls( ... ) in the view. The application did not crash but the toolbar button remained grayed out.
Thanks in advance,
Tags for this Thread
Click Here to Expand Forum to Full Width