<?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 : SetIconId ignored in ribbon bar system button</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SetIconId ignored in ribbon bar system button]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 02:40:57 +0000</pubDate>
  <lastBuildDate>Thu, 28 Feb 2008 02:25:56 +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=9729</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[SetIconId ignored in ribbon bar system button : cancel that never mind....  there&amp;#039;s...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31698&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31698</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 9729<br /><strong>Posted:</strong> 28 February 2008 at 2:25am<br /><br />cancel that never mind....<DIV>&nbsp;</DIV><DIV>there's another problem.</DIV><DIV>&nbsp;</DIV><DIV>SetIconId( nId ) calls through to RedrawParent()</DIV><DIV>&nbsp;</DIV><DIV>However, RedrawParent() has a BOOL parameter about whether to animate or not.</DIV><DIV>&nbsp;</DIV><DIV>If you're trying to animate the icon yourself, this really screws it.</DIV><DIV>&nbsp;</DIV><DIV>I suggest changing the prototype </DIV><DIV>&nbsp;</DIV><DIV>AFX_INLINE void CXTPControl::SetIconId(int nId) {<BR></DIV><DIV>to</DIV><DIV>&nbsp;</DIV><DIV>AFX_INLINE void CXTPControl::SetIconId(int nId, BOOL bAnimate = TRUE) {<BR></DIV><DIV>&nbsp;</DIV><DIV>then I can override animation for setting of the system icon.</DIV><DIV><BR>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 02:25:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31698&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31698</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconId ignored in ribbon bar system button : never mind... found you need to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31697&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31697</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 9729<br /><strong>Posted:</strong> 28 February 2008 at 2:19am<br /><br />never mind... found you need to add the icon to the image manager first.]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 02:19:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31697&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31697</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconId ignored in ribbon bar system button : p.s, that&amp;#039;s in   CXTPRi...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31695&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31695</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 9729<br /><strong>Posted:</strong> 28 February 2008 at 2:03am<br /><br />p.s, that's in <DIV>&nbsp;</DIV><DIV>CXTPRibbonTheme::DrawRibbonFrameSystemButton</DIV>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 02:03:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31695&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31695</guid>
  </item> 
  <item>
   <title><![CDATA[SetIconId ignored in ribbon bar system button :   I&amp;#039;m trying to animate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31694&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31694</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2967">adrien</a><br /><strong>Subject:</strong> 9729<br /><strong>Posted:</strong> 28 February 2008 at 2:01am<br /><br /><DIV></DIV><DIV></DIV><DIV></DIV>I'm trying to animate the icon in the system button in a ribbon by using a timer and setting the icon id with.<DIV>&nbsp;</DIV><DIV>&nbsp;CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;if(pCommandBars)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars-&gt;GetToolBar(nRibbonId);<BR>&nbsp;&nbsp;if(pRibbonBar)<BR>&nbsp;&nbsp;&nbsp;pRibbonBar-&gt;GetSystemButton()-&gt;SetIconId( nId );<BR>&nbsp;}<BR></DIV><DIV>&nbsp;</DIV><DIV>however, this calls through to (when it paints the button).</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;HICON hIcon = GetFrameLargeIcon(pSite);<BR></DIV><DIV>which always just sets the icon to the main frame icon, not the one set.</DIV><DIV>&nbsp;</DIV><DIV>How do I do animation?</DIV><DIV>&nbsp;</DIV><DIV>There's no documentaion for CXTPCommandBarAnimation, is that what I'm supposed to use, or does that just animate expansion etc of menus etc?</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV><DIV>&nbsp;</DIV><DIV>Adrien</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Thu, 28 Feb 2008 02:01:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9729&amp;PID=31694&amp;title=seticonid-ignored-in-ribbon-bar-system-button#31694</guid>
  </item> 
 </channel>
</rss>