Print Page | Close Window

Catching events inside the mainframe

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19365
Printed Date: 20 April 2024 at 6:31am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Catching events inside the mainframe
Posted By: sdancer75
Subject: Catching events inside the mainframe
Date 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!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net