<?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 : SetIcons from resource DLL?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : SetIcons from resource DLL?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 02:16:37 +0000</pubDate>
  <lastBuildDate>Sun, 30 Jan 2011 15:56:30 +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=17358</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[SetIcons from resource DLL? : thanks, with Attach bitmapit worked....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62364&amp;title=seticons-from-resource-dll#62364</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 30 January 2011 at 3:56pm<br /><br />thanks, with Attach bitmap&nbsp;it worked.]]>
   </description>
   <pubDate>Sun, 30 Jan 2011 15:56:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62364&amp;title=seticons-from-resource-dll#62364</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : Here&amp;#039;s a couple of ways I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62363&amp;title=seticons-from-resource-dll#62363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 30 January 2011 at 2:03pm<br /><br /><DIV>Here's a couple of ways I do this in my code.&nbsp; Hope it helps..</DIV><DIV>&nbsp;</DIV><DIV>My icons are .ICOs in a resource file, loaded like this:</DIV><DIV>&nbsp;</DIV><P><FONT size=1><FONT color=#0033ff><FONT face="Courier New, Courier, mono">CXTPImageManagerIconHandle hIcon</FONT><FONT face="Courier New, Courier, mono">;</FONT></FONT></FONT></P><P><FONT size=1><FONT color=#0033ff><FONT face="Courier New, Courier, mono">hIcon.CreateIconFromResource(iconInst,MAKEINTRESOURCE(iconIds&#091;x&#093;.icon),sz32, TRUE</FONT><FONT face="Courier New, Courier, mono">);</FONT></FONT></FONT></P><P><FONT size=1><FONT color=#0033ff><FONT face="Courier New, Courier, mono">XTPImageManager()-&gt;<SPAN =highlight>SetIcon</SPAN>(hIcon,iconIds&#091;x&#093;.cmd</FONT><FONT face="Courier New, Courier, mono">);</P><DIV></DIV><DIV></DIV></FONT></FONT><FONT color=#333333 face="Arial, Helvetica, sans-serif">I load a PNG and attach it to my menu with this code:<DIV></DIV><DIV></DIV><FONT color=#0033ff face="Courier New, Courier, mono">&nbsp;&nbsp;&nbsp;&nbsp;UINT nCommands2&#091;&#093; = {IDB_LOGO};<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPImageManagerIcon hIcon(IDB_LOGO,0,0);<BR>&nbsp;&nbsp;&nbsp;&nbsp;BOOL b = TRUE;<BR>&nbsp;&nbsp;&nbsp;&nbsp;HBITMAP bm = hIcon.LoadBitmapFromResource(instResource,MAKEINTRESOURCE(IDB_C2RLOGO),&amp;b);<BR>&nbsp;&nbsp;&nbsp;&nbsp;CBitmap cbm;<BR>&nbsp;&nbsp;&nbsp;&nbsp;cbm.Attach(bm);<BR>&nbsp;&nbsp;&nbsp;&nbsp;b = GetCommandBars()-&gt;GetImageManager()-&gt;SetIcons(cbm, nCommands2,_countof(nCommands2) ,CSize(0,0), xtpImageNormal, TRUE); <BR>&nbsp;&nbsp;&nbsp;&nbsp;FreeLibrary(instResource);<BR></FONT></FONT></FONT>]]>
   </description>
   <pubDate>Sun, 30 Jan 2011 14:03:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62363&amp;title=seticons-from-resource-dll#62363</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : I have tried this, but it does...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62362&amp;title=seticons-from-resource-dll#62362</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 30 January 2011 at 11:02am<br /><br /><P>I have tried this, but it does not work :(</P><DIV>&nbsp;</DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas><P>UINT nIDSysInfo=1;</P><P></P><P>hResourceInstance=LoadLibrary(_T(</FONT></FONT><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas><FONT color=#a31515 size=2 face=C&#111;nsolas>"HardRes.dll"</FONT></FONT></FONT><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>));</P><P>bmpChassis.FromHandle(CXTPImageManagerIcon::LoadBitmapFromResource(hResourceInstance, MAKEINTRESOURCE(IDB_LOGO_CHASSIS), &amp;bAlpha)); </P><P>XTPImageManager()-&gt;SetIcons(bmpChassis, &amp;nIDSysInfo, 1, CSize(70,107)); // if I use bmpChassis.GetDimensions() instead of CSize it crashes</P><P></P><P>FreeLibrary(hResourceInstance);</FONT></FONT></P>]]>
   </description>
   <pubDate>Sun, 30 Jan 2011 11:02:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=62362&amp;title=seticons-from-resource-dll#62362</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : Thanks ! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60674&amp;title=seticons-from-resource-dll#60674</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 04 October 2010 at 12:21pm<br /><br />Thanks ! <img src="http://forum.codejock.com/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" />]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 12:21:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60674&amp;title=seticons-from-resource-dll#60674</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : Hi,you can use staticHBITMAP C...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60666&amp;title=seticons-from-resource-dll#60666</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 04 October 2010 at 8:19am<br /><br /><div>Hi,</div><div><br></div><div>you can use static</div><div>HBITMAP CXTPImageManagerIcon::LoadBitmapFromResource(HMODULE hModule, LPCTSTR lpszResource, BOOL* lbAlphaBitmap); method.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 08:19:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60666&amp;title=seticons-from-resource-dll#60666</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : Hi, Is there a function in ToolkitPro...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60664&amp;title=seticons-from-resource-dll#60664</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 04 October 2010 at 5:45am<br /><br /><DIV>Hi,</DIV><DIV>Is there a function in ToolkitPro to load the bitmap from a different resource DLL or I need to make my own?</DIV>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 05:45:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60664&amp;title=seticons-from-resource-dll#60664</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : Hi,You can first load bitmap and...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60659&amp;title=seticons-from-resource-dll#60659</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 04 October 2010 at 2:45am<br /><br />Hi,<div><br></div><div>You can first load bitmap and add it with&nbsp;<span ="Apple-style-span" style="font-family: C&#111;nsolas; line-height: 18px; font-size: small; -webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; ">XTPImageManager()-&gt;SetIcons(&amp;bmp, ...) method.</span></div>]]>
   </description>
   <pubDate>Mon, 04 Oct 2010 02:45:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60659&amp;title=seticons-from-resource-dll#60659</guid>
  </item> 
  <item>
   <title><![CDATA[SetIcons from resource DLL? : How can I load bitmaps from a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60612&amp;title=seticons-from-resource-dll#60612</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3171">evoX</a><br /><strong>Subject:</strong> 17358<br /><strong>Posted:</strong> 01 October 2010 at 12:43am<br /><br />How can I load bitmaps from a Resource DLL file for Markup?<DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>I have this, but I want to load the bitmap from a different DLL.</FONT></FONT></DIV><DIV><FONT size=2 face=C&#111;nsolas><FONT size=2 face=C&#111;nsolas>XTPImageManager()-&gt;SetIcons(IDB_PNG_XAML_SYSINFO, &amp;nIDSysInfo, 1, 0); </DIV></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 01 Oct 2010 00:43:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=17358&amp;PID=60612&amp;title=seticons-from-resource-dll#60612</guid>
  </item> 
 </channel>
</rss>