<?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 routing for CXTExcelTabCtrl views</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Command routing for CXTExcelTabCtrl views]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 14:13:09 +0000</pubDate>
  <lastBuildDate>Mon, 05 May 2008 11:05: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=10505</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 routing for CXTExcelTabCtrl views : Martin -  Thanks for the suggestion....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34716&amp;title=command-routing-for-cxtexceltabctrl-views#34716</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4149">whudson</a><br /><strong>Subject:</strong> 10505<br /><strong>Posted:</strong> 05 May 2008 at 11:05am<br /><br />Martin -<DIV>&nbsp;</DIV><DIV>Thanks for the suggestion. I don't actually have a CXTExcelTabCtrl-derived class at the moment. A CXTExcelTabCtrl&nbsp;object is a member of my parent view. This is the way it appears to be done in the Codejock-supplied sample.</DIV><DIV>&nbsp;</DIV><DIV>The other issue is that it all works splendily once the user clicks in the client area of the newly-selected view. If I could just change the state of the MFC framework so that it behaved the same way, I would be home and dry. </DIV><DIV>&nbsp;</DIV><DIV>Regards,</DIV><DIV>&nbsp;</DIV><DIV>William</DIV>]]>
   </description>
   <pubDate>Mon, 05 May 2008 11:05:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34716&amp;title=command-routing-for-cxtexceltabctrl-views#34716</guid>
  </item> 
  <item>
   <title><![CDATA[Command routing for CXTExcelTabCtrl views : Hi;  only a suggestion - not...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34715&amp;title=command-routing-for-cxtexceltabctrl-views#34715</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 10505<br /><strong>Posted:</strong> 05 May 2008 at 10:49am<br /><br />Hi; <DIV>only a suggestion - not tested yet:</DIV><DIV>&nbsp;</DIV><DIV>In your CXTExcelTabCtrl derived class overwrite OnCmdMsg and first try to route the call to the currently active view. </DIV>]]>
   </description>
   <pubDate>Mon, 05 May 2008 10:49:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34715&amp;title=command-routing-for-cxtexceltabctrl-views#34715</guid>
  </item> 
  <item>
   <title><![CDATA[Command routing for CXTExcelTabCtrl views : I have an MDI application which...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34709&amp;title=command-routing-for-cxtexceltabctrl-views#34709</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4149">whudson</a><br /><strong>Subject:</strong> 10505<br /><strong>Posted:</strong> 05 May 2008 at 9:43am<br /><br />I have an MDI application which has tabbed windows very much like an Excel workbook, using <FONT size=2>CXTExcelTabCtrl. But I am having trouble with where MFC sends commands like <FONT size=2>ID_EDIT_COPY (and the associated update command used to enable the corresponding menu item).<DIV></DIV>&nbsp;<DIV></DIV>If I click with a mouse in the current view, all works as expected. However, when I change views by clicking on a tab, the commands appear to be routed elsewhere - either the parent or the Excel tab ctrl, I haven't checked this yet. But the Edit Copy menu item becomes greyed out because there is nothing to handle the ON_UPDATE_COMMAND_UI message. Again, if I click in the window, it all resumes working.<DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>I have tried using various Activate and SetFocus functions and messages in response to the notification from the Excel ctrl that it has changed the current view, but none of these has the same effect as physically clicking with the mouse. What blindingly obvious thing am I missing?? (I have even tried sending an LBUTTONDOWN message to the curren view, but that had no effect either.)<DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>Thanks in advance for any clues.<DIV></DIV><DIV></DIV>&nbsp;<DIV></DIV>Regards,<DIV></DIV>&nbsp;<DIV></DIV>William</FONT></FONT>]]>
   </description>
   <pubDate>Mon, 05 May 2008 09:43:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10505&amp;PID=34709&amp;title=command-routing-for-cxtexceltabctrl-views#34709</guid>
  </item> 
 </channel>
</rss>