<?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 : How to change the ic&#111;n dynamicaly?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to change the ic&#111;n dynamicaly?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 23:05:43 +0000</pubDate>
  <lastBuildDate>Tue, 12 Oct 2004 03:11:04 +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=1245</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[How to change the ic&#111;n dynamicaly? : Thank you very much. By your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3449&amp;title=how-to-change-the-icon-dynamicaly#3449</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=478">freehawk</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 12 October 2004 at 3:11am<br /><br /><P>Thank you very much.</P><P>By your way, I can change it, now there is a problem. when I clicked the button, the program crashed. I dont know why. Please help me.</P><P>My source code is as the following</P><P>1. OnCreate()</P><P>&nbsp;UINT nCommands&#091;&#093; = {1,2};<BR> &nbsp;GetCommandBars()-&gt;GetImageManager()-&gt;SetIcons(ID B_BITMAP1, nCommands, 2, CSize(16, 16) );</P><P>2.void CMainFrame::OnUpdateAnimationTest(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;&nbsp;pCmdUI-&gt;Enable(TRUE);</P><P>&nbsp;CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);</P><P>&nbsp;pControl-&gt;SetIconId(m_bTestIconFlg? 1: 2);</P>}<P>Is it right?<BR><BR></P><P>&nbsp;</P><P>&nbsp;</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /></P><P>index in SetIconId points to icon in IconManager.</P><P>in OnCreate:</P><P>pCommandBars()-&gt;GetImageManager()-&gt;SetIcons(IDB_BITMAP 1,....)</P><P>&nbsp;</P><P>if Customization is enabled in your program, don't use FindControl, user can move/delete button.</P><P>Use Update Handler to update button's icon.</P><P>void CCustomThemesView::OnUpdateBack(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;<BR>&nbsp;CXTPControl* pPopup = CXTPControl::FromUI(pCmdUI));</P><P><BR>&nbsp;if (pPopup)<BR>&nbsp;{&nbsp;<BR>&nbsp;&nbsp;pPopup-&gt;SetIconId(m_bEdit? ID_EDIT_COPY: ID_EDIT_PASTE);<BR>&nbsp;}</P><P>}<BR></P><P>&nbsp;</P><P>&nbsp;</P></td></tr></table> ]]>
   </description>
   <pubDate>Tue, 12 Oct 2004 03:11:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3449&amp;title=how-to-change-the-icon-dynamicaly#3449</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the ic&#111;n dynamicaly? : index in SetIconId points to icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3444&amp;title=how-to-change-the-icon-dynamicaly#3444</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 12 October 2004 at 2:18am<br /><br /><P>index in SetIconId points to icon in IconManager.</P><P>in OnCreate:</P><P> pCommandBars()-&gt;GetImageManager()-&gt;SetIcons(IDB_BITMAP 1,....)</P><P>&nbsp;</P><P>if Customization is enabled in your program, don't use FindControl, user can move/delete button.</P><P>Use Update Handler to update button's icon.</P><P>void CCustomThemesView::OnUpdateBack(CCmdUI* pCmdUI)<BR>{<BR>&nbsp;<BR>&nbsp;CXTPControl* pPopup = CXTPControl::FromUI(pCmdUI));</P><P><BR>&nbsp;if (pPopup)<BR>&nbsp;{&nbsp;<BR>&nbsp;&nbsp;pPopup-&gt;SetIconId(m_bEdit? ID_EDIT_COPY: ID_EDIT_PASTE);<BR>&nbsp;}</P><P>}<BR></P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 12 Oct 2004 02:18:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3444&amp;title=how-to-change-the-icon-dynamicaly#3444</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the ic&#111;n dynamicaly? : I added the following code to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3424&amp;title=how-to-change-the-icon-dynamicaly#3424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=478">freehawk</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 11 October 2004 at 3:02am<br /><br /><P>I added the following code to my project , but the icon of button in toolbar can not be changed. Please help me why.</P><P>&nbsp;CXTPCommandBars* pCommandBar = GetCommandBars();<BR>&nbsp;if (!pCommandBar)<BR>&nbsp;&nbsp;return;</P><P>&nbsp;CXTPControl* pCtl = pCommandBar-&gt;FindControl( xtpControlButton, ID_ANIMATION_TEST, TRUE, TRUE );<BR>&nbsp;if ( pCtl )<BR>&nbsp;{<BR>&nbsp;&nbsp;pCtl-&gt;SetIconId(IDB_BITMAP1);<BR>}</P><P>&nbsp;</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by freehawk" alt="Originally posted by freehawk" style="vertical-align: text-bottom;" /> <strong>freehawk wrote:</strong><br /><br /></P><P>Yes.</P><P>I want to do the following somethings</P><P>1.After clicked a button in toolbar, I want to change the icon of button to a animation, and then clicked the animation button once more, I need to change it to icon.</P><P>2.I need to display some icons in toolbar (not button), and dynamicaly change them to animations or other icons.</P><P>Please help me.</P><P>Thanks</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />So you need to change icon or add animated icon?</td></tr></table> </P></td></tr></table> ]]>
   </description>
   <pubDate>Mon, 11 Oct 2004 03:02:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3424&amp;title=how-to-change-the-icon-dynamicaly#3424</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the ic&#111;n dynamicaly? : Yes. I want to do the following...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3392&amp;title=how-to-change-the-icon-dynamicaly#3392</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=478">freehawk</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 07 October 2004 at 8:20pm<br /><br /><P>Yes.</P><P>I want to do the following somethings</P><P>1.After clicked a button in toolbar, I want to change the icon of button to a animation, and then clicked the animation button once more, I need to change it to icon.</P><P>2.I need to display some icons in toolbar (not button), and dynamicaly change them to animations or other icons.</P><P>Please help me.</P><P>Thanks</P><P>&nbsp;</P><P>&nbsp;</P><P>&nbsp;</P><P><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />So you need to change icon or add animated icon?</td></tr></table> </P>]]>
   </description>
   <pubDate>Thu, 07 Oct 2004 20:20:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3392&amp;title=how-to-change-the-icon-dynamicaly#3392</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the ic&#111;n dynamicaly? : So you need to change icon or...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3373&amp;title=how-to-change-the-icon-dynamicaly#3373</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 07 October 2004 at 6:24am<br /><br />So you need to change icon or add animated icon?]]>
   </description>
   <pubDate>Thu, 07 Oct 2004 06:24:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3373&amp;title=how-to-change-the-icon-dynamicaly#3373</guid>
  </item> 
  <item>
   <title><![CDATA[How to change the ic&#111;n dynamicaly? : Hello How to change icon, animation...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3370&amp;title=how-to-change-the-icon-dynamicaly#3370</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=478">freehawk</a><br /><strong>Subject:</strong> 1245<br /><strong>Posted:</strong> 07 October 2004 at 3:37am<br /><br /><P>Hello</P><P>How to change icon, animation in toolbar dynamicaly? Please help me.</P><P>Thanks</P>]]>
   </description>
   <pubDate>Thu, 07 Oct 2004 03:37:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1245&amp;PID=3370&amp;title=how-to-change-the-icon-dynamicaly#3370</guid>
  </item> 
 </channel>
</rss>