<?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 XP Ic&#111;ns from resource</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Loading XP Ic&#111;ns from resource]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:44:02 +0000</pubDate>
  <lastBuildDate>Thu, 15 Sep 2005 14:29:09 +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=2884</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 XP Ic&#111;ns from resource : Hi Oleg, A small bug... HBITMAP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8644&amp;title=loading-xp-icons-from-resource#8644</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2884<br /><strong>Posted:</strong> 15 September 2005 at 2:29pm<br /><br /><P>Hi Oleg,</P><P>A small bug...</P><P>HBITMAP CXTPImageManagerIcon::LoadAlphaIcon(LPCTSTR pszFileName, int nWidth)<BR>{</P><P>&nbsp;HANDLE hFile = CreateFile(pszFileName, GENERIC_READ, 0, NULL,<BR>&nbsp;&nbsp;OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);</P><P>&nbsp;if (!hFile)<BR>&nbsp;&nbsp;return NULL;</P><P>should be...</P><P>&nbsp;if (hFile==INVALID_HANDLE_VALUE)<BR>&nbsp;&nbsp;return NULL;</P><P>&nbsp;</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 15 Sep 2005 14:29:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8644&amp;title=loading-xp-icons-from-resource#8644</guid>
  </item> 
  <item>
   <title><![CDATA[Loading XP Ic&#111;ns from resource : Hi, So SetIcon call don&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8608&amp;title=loading-xp-icons-from-resource#8608</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2884<br /><strong>Posted:</strong> 13 September 2005 at 11:53pm<br /><br /><P>Hi,</P><P>So SetIcon call don't work in your application? Can you attach ico file you use may be problem in it?</P><P>Don't open it in Visual Studio IDE and it won't damage it.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 13 Sep 2005 23:53:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8608&amp;title=loading-xp-icons-from-resource#8608</guid>
  </item> 
  <item>
   <title><![CDATA[Loading XP Ic&#111;ns from resource : Hi Oleg, thankx, But I did no...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8604&amp;title=loading-xp-icons-from-resource#8604</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2884<br /><strong>Posted:</strong> 13 September 2005 at 2:58pm<br /><br /><P>Hi Oleg,</P><P>thankx,</P><P>But I did no found any sample that actualy loads&nbsp;a XP Icon( with alpha layer )&nbsp;from the resource( RT_GROUP_ICON ), is there any sample ? </P><P>&lt;...&gt;</P><P>SetIcon( IDI_ICON, 0x100 ); // where IDI_ICON is a&nbsp;XP Icon</P><P>&lt;...&gt;</P><P>I did however found a lot of bitmap and toolbars examples but that's not what I need.</P><P>Actualy one of the reasons&nbsp;that I insist&nbsp;on&nbsp;icons and not bitmaps, is that the Icon is much easer to deal with and much smaller than bitmaps on the resource, ( it probably have some kind of compression )&nbsp;?</P><P>And also one the reasons I do not use SetIcon is because&nbsp;I think Visualstudio 6 does not like icons with alpha layer(&nbsp;not just 16milion &nbsp;), everytime I add one, the alpha layer is damaged. </P><P>That is why I need to see a sample to see how it's done.</P><P>André</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 13 Sep 2005 14:58:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8604&amp;title=loading-xp-icons-from-resource#8604</guid>
  </item> 
  <item>
   <title><![CDATA[Loading XP Ic&#111;ns from resource : In 9.70 was added simple  SetIcon(IconId,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8597&amp;title=loading-xp-icons-from-resource#8597</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2884<br /><strong>Posted:</strong> 13 September 2005 at 2:09pm<br /><br /><P>In 9.70 was added simple </P><P>SetIcon(IconId, CommandId)</P><P>That loads alpha icon.</P>]]>
   </description>
   <pubDate>Tue, 13 Sep 2005 14:09:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8597&amp;title=loading-xp-icons-from-resource#8597</guid>
  </item> 
  <item>
   <title><![CDATA[Loading XP Ic&#111;ns from resource : Hi, Is there anyway to load XP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8595&amp;title=loading-xp-icons-from-resource#8595</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1034">andre</a><br /><strong>Subject:</strong> 2884<br /><strong>Posted:</strong> 13 September 2005 at 8:13am<br /><br /><P>Hi,</P><P>Is there anyway to load XP icons( not bitmaps ) from&nbsp;resource ?</P><P>Xtreme has a very nice function HBITMAP CXTPImageManagerIcon::LoadAlphaIcon(LPCTSTR pszFileName, int nWidth), but it only loads icons&nbsp;from a file.</P><P>I&nbsp;build my own LoadAlphaIcon( HINSTANCE h, LPCSTR sid, int w ), but I want to know if&nbsp;it is there anyway simpler to do it, because I had to add the icons to a diferent resource group than ICON.</P><P>myresource.rc</P><P>&lt;..&gt;</P><P> DELETE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; IMAGE&nbsp;&nbsp;&nbsp;&nbsp; DISCARDABLE&nbsp;&nbsp;&nbsp;&nbsp; "res\delete.ico"</P><P>&lt;..&gt;</P><P>An this raises another question, why do&nbsp;Visual studio seems to damage( remove alpha layer ) on XP icons when they are added to the ICON group on the resource ?</P><P>Thankx</P><P>André moreira</P>]]>
   </description>
   <pubDate>Tue, 13 Sep 2005 08:13:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2884&amp;PID=8595&amp;title=loading-xp-icons-from-resource#8595</guid>
  </item> 
 </channel>
</rss>