<?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 : I hope to chage icon on commandbar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : I hope to chage icon on commandbar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 22:46:28 +0000</pubDate>
  <lastBuildDate>Wed, 04 Mar 2009 03:37:18 +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=13571</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[I hope to chage icon on commandbar : Hi,  Code looks right. Are you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13571&amp;PID=46230&amp;title=i-hope-to-chage-icon-on-commandbar#46230</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13571<br /><strong>Posted:</strong> 04 March 2009 at 3:37am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Code looks right. Are you sure you call it after LoadCommandBars <FONT color=#000000>? pCtrl&nbsp; not NULL ?</FONT></DIV>]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 03:37:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13571&amp;PID=46230&amp;title=i-hope-to-chage-icon-on-commandbar#46230</guid>
  </item> 
  <item>
   <title><![CDATA[I hope to chage icon on commandbar : first, load prestate.  LoadC...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13571&amp;PID=46224&amp;title=i-hope-to-chage-icon-on-commandbar#46224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4549">copycdx2</a><br /><strong>Subject:</strong> 13571<br /><strong>Posted:</strong> 04 March 2009 at 3:03am<br /><br /><DIV>first, load prestate.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>LoadCommandBars(XTP_REG_TOOLBAR);</FONT></DIV><DIV>&nbsp;</DIV><DIV>I use commandbars&nbsp;with icon.</DIV><DIV>below code.</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#ff0000>&nbsp;&nbsp;pCommandBars-&gt;GetImageManager()-&gt;SetIcon( IDI_NC_LOGIN, IDI_NC_LOGIN );<BR>&nbsp;&nbsp;pCommandBars-&gt;GetImageManager()-&gt;SetIcon( IDI_NC_LOGOUT, IDI_NC_LOGOUT );</FONT></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>I hope to change icon in order to display toggle-state.</DIV><DIV>but, iconimage is&nbsp;not change.</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;<FONT color=#ff0000>CXTPCommandBars* pCommandBars = GetCommandBars();<BR>&nbsp;if(pCommandBars == NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create command bars object.\n");<BR>&nbsp;&nbsp;return;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}</FONT></DIV><P><FONT color=#ff0000>&nbsp;CXTPToolBar* pToolBar = (CXTPToolBar*)pCommandBars-&gt;GetToolBar(IDR_TOOLBAR_NC02);<BR>&nbsp;if( pToolBar )<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPControls* pControls = pToolBar-&gt;GetControls();<BR>&nbsp;&nbsp;if( pControls )<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CXTPControl* pCtrl = pControls-&gt;FindControl( ID_NCLOGIN );<BR>&nbsp;&nbsp;&nbsp;if( pCtrl )<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;if( bLoged )<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pCtrl-&gt;SetIconId(IDI_NC_LOGIN);<BR>&nbsp;&nbsp;&nbsp;&nbsp;else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pCtrl-&gt;SetIconId(IDI_NC_LOGOUT);</FONT></P><P><FONT color=#ff0000>&nbsp;&nbsp;&nbsp;&nbsp;RecalcLayout(FALSE);<BR>&nbsp;&nbsp;&nbsp;&nbsp;pCommandBars-&gt;RedrawCommandBars();<BR>&nbsp;&nbsp;&nbsp;&nbsp;RedrawWindow();<BR>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;}<BR>&nbsp;}</FONT></P>]]>
   </description>
   <pubDate>Wed, 04 Mar 2009 03:03:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13571&amp;PID=46224&amp;title=i-hope-to-chage-icon-on-commandbar#46224</guid>
  </item> 
 </channel>
</rss>