<?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 : Detect RibbonTab selection by user</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Detect RibbonTab selection by user]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 03:29:56 +0000</pubDate>
  <lastBuildDate>Thu, 19 Nov 2009 05:50:53 +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=15638</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[Detect RibbonTab selection by user : Hmm, wouldn&amp;#039;t it be more...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=55003&amp;title=detect-ribbontab-selection-by-user#55003</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 15638<br /><strong>Posted:</strong> 19 November 2009 at 5:50am<br /><br />Hmm, wouldn't it be more reliable to hand this information over to the program via the NMXTPTABCHANGE structure ?<DIV>&nbsp;</DIV><DIV>The event will be send from within the ribbon bar as well ( and is then out of my control ).</DIV>]]>
   </description>
   <pubDate>Thu, 19 Nov 2009 05:50:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=55003&amp;title=detect-ribbontab-selection-by-user#55003</guid>
  </item> 
  <item>
   <title><![CDATA[Detect RibbonTab selection by user : Hi,  Yes, this code. You always...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54996&amp;title=detect-ribbontab-selection-by-user#54996</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15638<br /><strong>Posted:</strong> 19 November 2009 at 4:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Yes, this code. You always can set some flag before change Tab programmatically and check it in yor handler.</DIV>]]>
   </description>
   <pubDate>Thu, 19 Nov 2009 04:20:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54996&amp;title=detect-ribbontab-selection-by-user#54996</guid>
  </item> 
  <item>
   <title><![CDATA[Detect RibbonTab selection by user :  Hello,  You&amp;#039;re talking...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54971&amp;title=detect-ribbontab-selection-by-user#54971</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 15638<br /><strong>Posted:</strong> 18 November 2009 at 8:08am<br /><br /><FONT color=#0000ff size=2><FONT color=#0000ff size=2><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>You're talking about the RibbonSample ?</DIV><DIV>&nbsp;</DIV><DIV>void</FONT></FONT><FONT size=2> </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>CMainFrame</FONT></FONT><FONT size=2>::</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>OnRibbonTabChanged</FONT></FONT><FONT size=2>(</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>NMHDR</FONT></FONT><FONT size=2>* </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pNMHDR</FONT></FONT><FONT size=2>, </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>LRESULT</FONT></FONT><FONT size=2>* </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pRes</FONT></FONT><FONT size=2>) </DIV><P>{</P><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>NMXTPTABCHANGE</FONT></FONT><FONT size=2>* </FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pNMTabChanged</FONT></FONT><FONT size=2> = (</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>NMXTPTABCHANGE</FONT></FONT><FONT size=2>*)</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pNMHDR</FONT></FONT><FONT size=2>;</P><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>if</FONT></FONT><FONT size=2> (</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pNMTabChanged</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pTab</FONT></FONT><FONT size=2>)</P><P>{</P><P></FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>TRACE</FONT></FONT><FONT size=2>(</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>_T</FONT></FONT><FONT size=2>(</FONT><FONT color=#a31515 size=2><FONT color=#a31515 size=2>"Tab Changed, Caption = %s\n"</FONT></FONT><FONT size=2>), (</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>LPCTSTR</FONT></FONT><FONT size=2>)</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pNMTabChanged</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pTab</FONT></FONT><FONT size=2>-&gt;</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>GetCaption</FONT></FONT><FONT size=2>());</P><P>}</P><P></P><P>*</FONT><FONT color=#030003 size=2><FONT color=#030003 size=2>pRes</FONT></FONT><FONT size=2> = 0;</P><P>}</P><DIV></DIV><DIV></DIV>Thanks, but I already found this solution. <DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>But how can I be sure that the USER actually select the new tab ?</DIV><DIV></DIV><DIV></DIV><DIV></DIV><DIV></DIV>This event will also be fired when I change the tab programmatically. <DIV>&nbsp;</DIV><DIV>Alex</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 18 Nov 2009 08:08:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54971&amp;title=detect-ribbontab-selection-by-user#54971</guid>
  </item> 
  <item>
   <title><![CDATA[Detect RibbonTab selection by user : Hi, Please check RibbonBar sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54961&amp;title=detect-ribbontab-selection-by-user#54961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15638<br /><strong>Posted:</strong> 18 November 2009 at 7:19am<br /><br /><P>Hi,</P><DIV>Please check RibbonBar sample. View class catch it.</DIV>]]>
   </description>
   <pubDate>Wed, 18 Nov 2009 07:19:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54961&amp;title=detect-ribbontab-selection-by-user#54961</guid>
  </item> 
  <item>
   <title><![CDATA[Detect RibbonTab selection by user : Hello, how can I detect that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54889&amp;title=detect-ribbontab-selection-by-user#54889</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=517">Alex</a><br /><strong>Subject:</strong> 15638<br /><strong>Posted:</strong> 16 November 2009 at 9:15am<br /><br /><P>Hello,</P><DIV>how can I detect that the user selected a ribbon tab ?</DIV><DIV>&nbsp;</DIV><DIV>I want to detect a real user interaction initiated with the mouse or keyboard ( does it work with the keyboard ? )</DIV><DIV>&nbsp;</DIV><DIV>Just detecting the TCN_SELCHANGED or TCN_SELCHANGING is not sufficient.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance.</DIV><DIV>Alex</DIV>]]>
   </description>
   <pubDate>Mon, 16 Nov 2009 09:15:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15638&amp;PID=54889&amp;title=detect-ribbontab-selection-by-user#54889</guid>
  </item> 
 </channel>
</rss>