Catching events inside the mainframe |
Post Reply |
Author | |
sdancer75
Groupie Joined: 08 July 2008 Location: Greece Status: Offline Points: 70 |
Post Options
Thanks(0)
Posted: 31 December 2011 at 10:29am |
Hi,
Looking the sample DynamicPanes inside the Docking Panes Samples, I would like to catch the events of the "IDD_DIALOG_FORM" buttons inside the MainFrame.cpp. Is that possible ? How can I do that ? Regards, UPDATE : Ok fixed. just use the onCmdMsg like this BOOL CBottomPanel::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo) { // TODO: Add your specialized code here and/or call the base class //if the message is not handled inside the pane, then re-route the command to mainframe. if (!CDialogBar::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo)) return ((CMainFrame *)AfxGetMainWnd())->OnCmdMsg(nID, nCode, pExtra, pHandlerInfo); } |
|
Just me!
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |