<?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 : Command handlers in MDI view?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Command handlers in MDI view?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 14 May 2026 03:11:30 +0000</pubDate>
  <lastBuildDate>Mon, 05 Mar 2007 18:43:02 +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=4991</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[Command handlers in MDI view? : This is handled internally. The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4991&amp;PID=20915&amp;title=command-handlers-in-mdi-view#20915</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4991<br /><strong>Posted:</strong> 05 March 2007 at 6:43pm<br /><br />This is handled internally. The active view will get the first crack at the command, as far as I know.]]>
   </description>
   <pubDate>Mon, 05 Mar 2007 18:43:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4991&amp;PID=20915&amp;title=command-handlers-in-mdi-view#20915</guid>
  </item> 
  <item>
   <title><![CDATA[Command handlers in MDI view? : In an SDI App you simple put all...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4991&amp;PID=15528&amp;title=command-handlers-in-mdi-view#15528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 4991<br /><strong>Posted:</strong> 07 September 2006 at 2:07pm<br /><br /><P>In an SDI App you simple put all command handlers (menu items etc) in your CMyView.cpp file. This is possible thanks to this:</P><DIV>BOOL CMainFrame::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)<BR>{<BR>&nbsp;&nbsp;&nbsp; TRACE0( " CMainFrame::OnCmdMsg() entered\n" );</DIV><DIV>&nbsp;&nbsp;&nbsp; // let the view have first crack at the command<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (m_wndView.OnCmdMsg(nID, nCode, pExtra, pHandlerInfo))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;</DIV><DIV>&nbsp;&nbsp;&nbsp; // otherwise, do default handling<BR>&nbsp;&nbsp;&nbsp; return CFrameWnd::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);<BR>}</DIV><DIV>&nbsp;</DIV><DIV>Now, how do I do that in an MDI app (with a ribbon bar)? For instance, if a menu item says "print", I want to print the active view. That is, I want to handle this command in that very instance of the view.</DIV><DIV>&nbsp;</DIV><DIV>Suggestions?</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Thu, 07 Sep 2006 14:07:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4991&amp;PID=15528&amp;title=command-handlers-in-mdi-view#15528</guid>
  </item> 
 </channel>
</rss>