<?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 : Loading icon with alpha for use with XTP</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Loading icon with alpha for use with XTP]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:11:33 +0000</pubDate>
  <lastBuildDate>Fri, 27 Apr 2007 12:55:35 +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=6998</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[Loading icon with alpha for use with XTP : Thanks Oleg! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22414&amp;title=loading-icon-with-alpha-for-use-with-xtp#22414</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 12:55pm<br /><br />Thanks Oleg!]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 12:55:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22414&amp;title=loading-icon-with-alpha-for-use-with-xtp#22414</guid>
  </item> 
  <item>
   <title><![CDATA[Loading icon with alpha for use with XTP : Hi, You can load external ICO...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22402&amp;title=loading-icon-with-alpha-for-use-with-xtp#22402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 6:51am<br /><br /><DIV>Hi,</DIV><DIV>You can load external ICO with </DIV><DIV>&nbsp;</DIV><DIV>HBITMAP CXTPImageManagerIcon::LoadAlphaIcon(LPCTSTR pszFileName, int nWidth) </DIV><DIV>method and then add it with </DIV><DIV>CXTPImageManager::SetIcon(CXTPImageManagerIconHandle hIcon, UINT nIDCommand, CSize szIcon, XTPImageState imageState)</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 06:51:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22402&amp;title=loading-icon-with-alpha-for-use-with-xtp#22402</guid>
  </item> 
  <item>
   <title><![CDATA[Loading icon with alpha for use with XTP : Does CXTPImageManager::SetIcon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22394&amp;title=loading-icon-with-alpha-for-use-with-xtp#22394</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 4:06am<br /><br /><P>Does CXTPImageManager::SetIcon work with an external ICO file or a memory buffer (preferably), or am I forced to use a resource ID from my EXE (or other&nbsp;resouce DLL)?</P>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 04:06:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22394&amp;title=loading-icon-with-alpha-for-use-with-xtp#22394</guid>
  </item> 
  <item>
   <title><![CDATA[Loading icon with alpha for use with XTP : Hi,  Don&amp;#039;t use LoadImage...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22391&amp;title=loading-icon-with-alpha-for-use-with-xtp#22391</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 4:00am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Don't use LoadImage or SetCustomIcon.</DIV><DIV>&nbsp;</DIV><DIV>use this method:</DIV><DIV>BOOL CXTPImageManager::SetIcon(UINT nIDResourceIcon, UINT nIDCommand, CSize szIcon, XTPImageState imageState)</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>where nIDResourceIcon is your Alpha ico file resource. - it will load alpha icon and set it for nIDCommand command.</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 04:00:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22391&amp;title=loading-icon-with-alpha-for-use-with-xtp#22391</guid>
  </item> 
  <item>
   <title><![CDATA[Loading icon with alpha for use with XTP : Here is a little more information......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22384&amp;title=loading-icon-with-alpha-for-use-with-xtp#22384</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 3:12am<br /><br />Here is a little more information... my app is using the icon shadows and faded icons features of the paint manager.<DIV>&nbsp;</DIV><DIV>When I turn off icon shadows and faded icons the imported icons (using LoadImage) work perfectly. </DIV><DIV>&nbsp;</DIV><DIV>When I have faded icons turned on the icon doesn't show up (except for a very very&nbsp;faint outline on right and bottom). WHen I mouse over the icon (turning off the faded state) the icon looks perfect.</DIV><DIV>&nbsp;</DIV><DIV>When I have icon shadows turned on the icon offsets correctly when moused over but the shadow is not drawn (again except for the very very faint edge).</DIV><DIV>&nbsp;</DIV><DIV>Do I have to do something special with the HICON other than SetCustomIcon when adding it to the dynamically generated button for these two features to work?</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 03:12:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22384&amp;title=loading-icon-with-alpha-for-use-with-xtp#22384</guid>
  </item> 
  <item>
   <title><![CDATA[Loading icon with alpha for use with XTP : I have a full color icon with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22381&amp;title=loading-icon-with-alpha-for-use-with-xtp#22381</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1257">robosport</a><br /><strong>Subject:</strong> 6998<br /><strong>Posted:</strong> 27 April 2007 at 1:56am<br /><br />I have a full color icon with alpha channel (okay, lots of icons). For the last couple years I've used the CommandBar designer to input icons as part of the interface I made with XTP and MFC.<DIV>&nbsp;</DIV><DIV>I'm making a dynamic menu now and the icons are loaded at runtime either from memory buffer or from ICO file. I'm using the same ICO file imported into CommandBar Designer (and using Axialis)&nbsp;to confirm the icon has all the bits including alpha included in the file.</DIV><DIV>&nbsp;</DIV><DIV>My question is: What is the correct way to load an icon, either from ICO file or from bits in memory,&nbsp;so that it works correctly with XTP's controls and compositing. When I use ExtractIcon it doesn't preserve the alpha. When I use LoadImage I get mixed results based on settings but nothing seems quite right.&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>Any pointers are appreciated.</DIV><DIV><BR>Thanks!</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 01:56:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6998&amp;PID=22381&amp;title=loading-icon-with-alpha-for-use-with-xtp#22381</guid>
  </item> 
 </channel>
</rss>