<?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 : Adding ic&#111;ns to ImaageManager .AddIc&#111;n</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Adding ic&#111;ns to ImaageManager .AddIc&#111;n]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 23:01:30 +0000</pubDate>
  <lastBuildDate>Fri, 24 Feb 2006 08:53:21 +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=3686</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[Adding ic&#111;ns to ImaageManager .AddIc&#111;n : Using ExtractIconEx solved the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3686&amp;PID=11170&amp;title=adding-icons-to-imaagemanager-addicon#11170</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 3686<br /><strong>Posted:</strong> 24 February 2006 at 8:53am<br /><br />Using ExtractIconEx solved the issue. ExtractIcon loads 32x32 by default.]]>
   </description>
   <pubDate>Fri, 24 Feb 2006 08:53:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3686&amp;PID=11170&amp;title=adding-icons-to-imaagemanager-addicon#11170</guid>
  </item> 
  <item>
   <title><![CDATA[Adding ic&#111;ns to ImaageManager .AddIc&#111;n : I am attempting to dynamically...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3686&amp;PID=11100&amp;title=adding-icons-to-imaagemanager-addicon#11100</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1549">Shawshank</a><br /><strong>Subject:</strong> 3686<br /><strong>Posted:</strong> 22 February 2006 at 12:26am<br /><br /><P>I am attempting to dynamically load file type association icons into the ImageManager. This means some times the icon is a full path to a .ico file or it can be indexed into a library file or EXE. In this latter case I use ExtractIcon to get the handle. That works fine. It isn't until I try to add the icon to the ImageManager via .AddIcon that I have trouble. ExtractIcon provides me with a handle and I assign that to the ImageManager.AddIcon property. Checking the Watch window I see that the .Count property for the ImageManager.Cont property has increased by one. This leads me to believe that it was successful. When I then attempt to add the icon from the Imagemanager to the ReportRecordItem that trouble occurs. It simply doesn't appear --even after a .Populate call.</P><P>iPos% = InStrRev(sIconPath$, ",")<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>If iPos% Then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;iIdx% = Mid$(sIconPath$, (iPos% + 1))<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sIconPath$ = Left$(sIconPath$, (iPos% - 1))<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sIconPath$ = Replace(sIconPath$, """", "")<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If gFSO.FileExists(sIconPath$) Then<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hIcon&amp; = ExtractIcon(frmMain.hWnd, sIconPath$, iIdx%)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If</P><P>End If</P><P>lIconIdx&amp; = (Me.ImageMan.Icons.Count + 1)</P><P>Me.ImageMan.Icons.AddIcon hIcon&amp;, lIconIdx&amp;, xtpImageNormal</P><P>Me.rc.Records.Record(lIdx&amp;).Item(1).Icon = lIconIdx&amp;</P><P>I have no trouble using .LoadIcon. Is there something wrong with the code above? Should it not work? Any insight would be greatly appreciated!<BR></P>]]>
   </description>
   <pubDate>Wed, 22 Feb 2006 00:26:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3686&amp;PID=11100&amp;title=adding-icons-to-imaagemanager-addicon#11100</guid>
  </item> 
 </channel>
</rss>