<?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 : Icons in CXTPToolBar</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Icons in CXTPToolBar]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 05:44:16 +0000</pubDate>
  <lastBuildDate>Mon, 23 Jun 2008 14:50:12 +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=11164</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[Icons in CXTPToolBar : Hi,  I&amp;#039;m not even sure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37275&amp;title=icons-in-cxtptoolbar#37275</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11164<br /><strong>Posted:</strong> 23 June 2008 at 2:50pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>I'm not even sure that second method really work.&nbsp; if you don't know how many icons in file, how ImageManager have to determine it ?</DIV><DIV>&nbsp;</DIV><DIV>Use first method.</DIV>]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 14:50:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37275&amp;title=icons-in-cxtptoolbar#37275</guid>
  </item> 
  <item>
   <title><![CDATA[Icons in CXTPToolBar : Thanks.We have found 2 ways to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37270&amp;title=icons-in-cxtptoolbar#37270</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4255">GoBeavs</a><br /><strong>Subject:</strong> 11164<br /><strong>Posted:</strong> 23 June 2008 at 1:44pm<br /><br />Thanks.<br><br>We have found 2 ways to resolve this problem and would like to know which is the preferred method.&nbsp; We found empirically that:<br><br>1. Since there are 10 images in my .png file, if I change the icon array to have a place for each icon, the code works. <br><br><font face="Courier New, Courier, mono">UINT icons&#091;&#093; = {0, 0, 0, 0, 0, ID_VALUESET_COMMITCHANGES</font><font face="Courier New, Courier, mono">, 0</font><font face="Courier New, Courier, mono">, 0</font><font face="Courier New, Courier, mono">, 0</font><font face="Courier New, Courier, mono">, 0</font><font face="Courier New, Courier, mono">};<br><br>2. Changing the array to indicate unused icons with -1 makes the icon mapping work<br><br></font><font face="Courier New, Courier, mono">UINT icons&#091;&#093; = {-1, -1, -1, -1, -1, ID_VALUESET_COMMITCHANGES};<br><br>Which is preferred? I tend to like number 2 because it doesn't require me to know how many icons are in the png file, just account for which ones I'm using.<br><br>Thanks<br></font><font face="Courier New, Courier, mono"><br></font>]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 13:44:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37270&amp;title=icons-in-cxtptoolbar#37270</guid>
  </item> 
  <item>
   <title><![CDATA[Icons in CXTPToolBar : Hi,  Need to see your toolbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37266&amp;title=icons-in-cxtptoolbar#37266</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11164<br /><strong>Posted:</strong> 23 June 2008 at 1:36pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Need to see your toolbar resource and your toolbar bitmap to understand what you need.</DIV><DIV>&nbsp;</DIV><DIV>Attach sample.</DIV>]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 13:36:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37266&amp;title=icons-in-cxtptoolbar#37266</guid>
  </item> 
  <item>
   <title><![CDATA[Icons in CXTPToolBar : Hi,I&amp;#039;m trying to reuse some...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37264&amp;title=icons-in-cxtptoolbar#37264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4255">GoBeavs</a><br /><strong>Subject:</strong> 11164<br /><strong>Posted:</strong> 23 June 2008 at 12:31pm<br /><br /><font face="Arial, Helvetica, sans-serif">Hi,<br><br>I'm trying to reuse some icons in a toolbar with the following code.<br></font><br><font face="Courier New, Courier, mono">{<br>&nbsp;&nbsp;&nbsp; // make the array for the icons<br>&nbsp;&nbsp;&nbsp; UINT icons&#091;&#093; = {0, 0, 0, 0, 0, ID_VALUESET_COMMITCHANGES};<br><br>&nbsp;&nbsp;&nbsp; // now set the color icon<br>&nbsp;&nbsp;&nbsp; int index = 0;<br>&nbsp;&nbsp;&nbsp; // if we have a valuset, get the correct color<br>&nbsp;&nbsp;&nbsp; icons&#091;index&#093; = ID_VALUESET_COLOR;<br>&nbsp;&nbsp;&nbsp; // set the icons for the toobar<br>&nbsp;&nbsp;&nbsp; VERIFY(m_MainToolBar-&gt;GetImageManager()-&gt;SetIcons(IDB_VALUESET, icons, _countof(icons), CSize(32, 32)) );<br>&nbsp;&nbsp;&nbsp; m_MainToolBar-&gt;Invalidate();<br>}<br><br><font face="Arial, Helvetica, sans-serif">What I'm seeing is that I am always getting the first 2 icons out of IDB_VALUSET which is a .png file. The behavior I desire is to pick icons within that file and set them on particular buttons. m_MainToolBar is a CXTPToolBar.<br><br>Is it the case that the specification of icons&#091;&#093; is somehow wrong, or is this just not possible with a CXTPToolBar?<br><br>Thanks,<br><br>Darin<br></font></font>]]>
   </description>
   <pubDate>Mon, 23 Jun 2008 12:31:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11164&amp;PID=37264&amp;title=icons-in-cxtptoolbar#37264</guid>
  </item> 
 </channel>
</rss>