<?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 handler design</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : Command handler design]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 17:07:17 +0000</pubDate>
  <lastBuildDate>Sat, 08 Mar 2008 03:38:33 +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=9819</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 handler design : Both your answers make sense....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=32034&amp;title=command-handler-design#32034</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9819<br /><strong>Posted:</strong> 08 March 2008 at 3:38am<br /><br />Both your answers make sense. Actually I've never caught a message in my CDocument classes <img src="http://forum.codejock.com/smileys/smiley17.gif" border="0">.]]>
   </description>
   <pubDate>Sat, 08 Mar 2008 03:38:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=32034&amp;title=command-handler-design#32034</guid>
  </item> 
  <item>
   <title><![CDATA[Command handler design : Hi; the standard MFC message...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=31995&amp;title=command-handler-design#31995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9819<br /><strong>Posted:</strong> 07 March 2008 at 6:44am<br /><br />Hi;<DIV>the standard MFC message routine is first frame, then view then document if you have a doc/view architecture. </DIV><DIV>In most cases I handle the messages in my CDocument implementation, because the commands more or less manipulate the data I present in my views/controls.</DIV><DIV>When I don't have doc/view architecture, I handle&nbsp;command messages at place where they occure. The only difference here is, when the data is controlled by the parent/owner of the control.</DIV><DIV>&nbsp;</DIV><DIV>To your second question:</DIV><DIV>Most of the time (95 out of 100) I use command handlers for popup menus also. IMHO this leads to a more readable and maintainable code.</DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 06:44:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=31995&amp;title=command-handler-design#31995</guid>
  </item> 
  <item>
   <title><![CDATA[Command handler design : I have a frame with a view, with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=31986&amp;title=command-handler-design#31986</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9819<br /><strong>Posted:</strong> 07 March 2008 at 2:57am<br /><br /><P>I have a frame with a view, with a report control. On my menu I have five commands that somehow alter this report control. These commands are also accessable via a right-click menu in the report control.</P><DIV>1) Where should I put my command handlers? In the frame, the view or in the report control itself?</DIV><DIV>2) When showing the right-click menu, should I rely on the command handlers or should I explicitly check the return value of TrackPopupMenu()?</DIV><DIV>&nbsp;</DIV><DIV>Are there any guidelines for this?</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 07 Mar 2008 02:57:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9819&amp;PID=31986&amp;title=command-handler-design#31986</guid>
  </item> 
 </channel>
</rss>