<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Catching events inside the mainframe</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Catching events inside the mainframe]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 11:16:01 +0000</pubDate>
  <lastBuildDate>Sat, 31 Dec 2011 10:29:24 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=19365</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Catching events inside the mainframe :  Hi,Looking the sample DynamicPanes...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19365&amp;PID=67303&amp;title=catching-events-inside-the-mainframe#67303</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4319">sdancer75</a><br /><strong>Subject:</strong> 19365<br /><strong>Posted:</strong> 31 December 2011 at 10:29am<br /><br />Hi,<div><br></div><div>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 ?</div><div><br></div><div>Regards,</div><div><br></div><div><br></div><div>UPDATE : Ok fixed. just use the onCmdMsg like this</div><div><br></div><div><div><font size="1" color="#ff0000">BOOL CBottomPanel::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)</font></div><div><font size="1" color="#ff0000">{</font></div><div><font size="1" color="#ff0000"><span ="Apple-tab-span" style="white-space:pre">	</span>// TODO: Add your specialized code here and/or call the base class</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font size="1" color="#ff0000">	</font></span></div><div><font size="1" color="#ff0000"><span ="Apple-tab-span" style="white-space:pre">	</span>//if the message is not handled inside the pane, then re-route the command to mainframe.</font></div><div><font size="1" color="#ff0000"><span ="Apple-tab-span" style="white-space:pre">	</span>if (!CDialogBar::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo))</font></div><div><font size="1" color="#ff0000"><span ="Apple-tab-span" style="white-space:pre">		</span>return &nbsp;((CMainFrame *)AfxGetMainWnd())-&gt;OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);</font></div><div><span ="Apple-tab-span" style="white-space:pre"><font size="1" color="#ff0000">	</font></span></div><div><font size="1" color="#ff0000">}</font></div></div>]]>
   </description>
   <pubDate>Sat, 31 Dec 2011 10:29:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19365&amp;PID=67303&amp;title=catching-events-inside-the-mainframe#67303</guid>
  </item> 
 </channel>
</rss>