<?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 : AddIc&#111;nHandle (ActiveX) 8.6</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : AddIc&#111;nHandle (ActiveX) 8.6]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 28 Apr 2026 11:51:40 +0000</pubDate>
  <lastBuildDate>Tue, 30 Dec 2003 14:16:45 +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=319</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[AddIc&#111;nHandle (ActiveX) 8.6 : When using LoadResPicture in VB,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=319&amp;PID=714&amp;title=addiconhandle-activex-8-6#714</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=229">robs</a><br /><strong>Subject:</strong> 319<br /><strong>Posted:</strong> 30 December 2003 at 2:16pm<br /><br /><P>When using LoadResPicture in VB, it seems to always load icons 32X32 pixels, which looks ugly on the docking panes.</P><P>I've had luck resizing the icons using code such as:</P><P>Private Declare Function CopyImage Lib "user32" (ByVal handle As Long, ByVal imageType As Long, ByVal newWidth As Long, ByVal newHeight As Long, ByVal lFlags As Long) As Long</P><P>Private Cons IMAGE_ICON=2</P><P>Private Const LR_COPYFROMRESOURCE =3</P><P>&nbsp;&nbsp; Dim p As stdole.IPictureDisp<BR>&nbsp;&nbsp; Set p = LoadResPicture(101, 1)<BR>&nbsp;&nbsp;&nbsp;Dim l As Long<BR>&nbsp;&nbsp; l = CopyImage(p.handle, IMAGE_ICON, 16, 16, LR_COPYFROMRESOURCE)</P><P>&nbsp; DockingPane.AddIconHandle (l,ID)</P><P>The code above will resize the icon in the resource file to 16X16.</P><P>Good luck.</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Tue, 30 Dec 2003 14:16:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=319&amp;PID=714&amp;title=addiconhandle-activex-8-6#714</guid>
  </item> 
 </channel>
</rss>