<?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 the minimize event for the ribbon</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Catching the minimize event for the ribbon]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 04:09:13 +0000</pubDate>
  <lastBuildDate>Tue, 13 May 2008 14:51:47 +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=10603</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 the minimize event for the ribbon : This worked great! Thanks.I implemented...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35168&amp;title=catching-the-minimize-event-for-the-ribbon#35168</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3882">TheMcCann</a><br /><strong>Subject:</strong> 10603<br /><strong>Posted:</strong> 13 May 2008 at 2:51pm<br /><br />This worked great!&nbsp; Thanks.<br><br>I implemented the fix, but I hope to see it in the next Codejock release too.]]>
   </description>
   <pubDate>Tue, 13 May 2008 14:51:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35168&amp;title=catching-the-minimize-event-for-the-ribbon#35168</guid>
  </item> 
  <item>
   <title><![CDATA[Catching the minimize event for the ribbon : Hello,  Yes, thanks, we agree...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35142&amp;title=catching-the-minimize-event-for-the-ribbon#35142</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 10603<br /><strong>Posted:</strong> 13 May 2008 at 1:40am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Yes, thanks, we agree this problem with 12.0 release.</DIV><DIV>&nbsp;</DIV><DIV>You can replace CRibbonColorSet&nbsp; class to fix it:</DIV><DIV>&nbsp;</DIV><DIV>class CXTPRibbonTheme::CRibbonColorSet : public CXTPTabPaintManager::CColorSetOffice2003<BR>{<BR>protected:<BR>&nbsp;void RefreshMetrics()<BR>&nbsp;{<BR>&nbsp;&nbsp;CColorSetOffice2003::RefreshMetrics();<BR>&nbsp;}</DIV><DIV>&nbsp;void SetTextColor(CDC* pDC, CXTPTabManagerItem* pItem)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPRibbonBar* pRibbonBar = ((CXTPRibbonTab*)pItem)-&gt;GetRibbonBar();<BR>&nbsp;&nbsp;<BR>&nbsp;&nbsp;BOOL bSelected = pItem-&gt;IsSelected();<BR>&nbsp;&nbsp;BOOL bHighlighted = pItem-&gt;IsHighlighted();<BR>&nbsp;&nbsp;BOOL bFocused = pItem-&gt;IsFocused();</DIV><DIV>&nbsp;&nbsp;if (bSelected &amp;&amp; pRibbonBar-&gt;IsRibbonMinimized())<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CXTPRibbonControlTab* pControlTab =&nbsp; (CXTPRibbonControlTab*)pItem-&gt;GetTabManager();<BR>&nbsp;&nbsp;&nbsp;if (pControlTab-&gt;GetCommandBar() &amp;&amp; pControlTab-&gt;GetCommandBar()-&gt;IsTrackingMode())<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;bFocused = bHighlighted = FALSE;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else if (pControlTab-&gt;GetSelected() &amp;&amp; bFocused)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;bFocused = bSelected = FALSE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;bHighlighted = TRUE;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;bFocused = bSelected = FALSE;<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}</DIV><DIV>&nbsp;&nbsp;pDC-&gt;SetTextColor(!pItem-&gt;IsEnabled() ? m_clrDisabledText: bSelected ? m_clrSelectedText: bHighlighted ? m_clrHighlightText : m_clrNormalText);<BR>&nbsp;}</DIV><DIV>};</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 13 May 2008 01:40:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35142&amp;title=catching-the-minimize-event-for-the-ribbon#35142</guid>
  </item> 
  <item>
   <title><![CDATA[Catching the minimize event for the ribbon : What is the best way to catch...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35136&amp;title=catching-the-minimize-event-for-the-ribbon#35136</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3882">TheMcCann</a><br /><strong>Subject:</strong> 10603<br /><strong>Posted:</strong> 12 May 2008 at 1:45pm<br /><br />What is the best way to catch a minimize event for the ribbon?&nbsp; I'm using the Office 2007 Black theme for the ribbon and when the ribbon is minimized, the currently selected tab maintains the same black text color, which is hard to see on the dark gray background.&nbsp; I would like to deselect all tabs when the ribbon is minimized so the tab's captions appear with the default unselected tab's white text color.<br><br>Thanks,<br>Jason<br>]]>
   </description>
   <pubDate>Mon, 12 May 2008 13:45:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=10603&amp;PID=35136&amp;title=catching-the-minimize-event-for-the-ribbon#35136</guid>
  </item> 
 </channel>
</rss>