Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Catching events inside the mainframe
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Catching events inside the mainframe

 Post Reply Post Reply
Author
Message Reverse Sort Order
sdancer75 View Drop Down
Groupie
Groupie
Avatar

Joined: 08 July 2008
Location: Greece
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote sdancer75 Quote  Post ReplyReply Direct Link To This Post Topic: Catching events inside the mainframe
    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!
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.