<?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 : Changes to imagemanager, missing functionality</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Changes to imagemanager, missing functionality]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 02:35:07 +0000</pubDate>
  <lastBuildDate>Tue, 19 Feb 2008 04:31:31 +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=9593</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[Changes to imagemanager, missing functionality :  Sorry. Got it. Sample for others...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31327&amp;title=changes-to-imagemanager-missing-functionality#31327</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1796">Janomat</a><br /><strong>Subject:</strong> 9593<br /><strong>Posted:</strong> 19 February 2008 at 4:31am<br /><br />Sorry. Got it. Sample for others following this thread...<br><br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIcon* pXTPIcon = XTPImageManager()-&gt;GetImage(MYICONID, 16);<br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandle cXTPIconHandle = pXTPIcon-&gt;GetIcon(xtpImageNormal);<br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandle cXTPnewIconHandle;<br>&nbsp;&nbsp;&nbsp; cXTPnewIconHandle.CopyHandle(cXTPIconHandle);<br>&nbsp;&nbsp;&nbsp; HBITMAP hBitmap = cXTPnewIconHandle.GetBitmap();<br><br>hBitmap can be used for creating an hIcon if needed using this code:<br><br>HICON Helper::CreateAlphaIcon(HBITMAP hBitmap, const CSize&amp; size)<br>{<br>&nbsp;&nbsp;&nbsp; HICON hIcon = NULL;<br>&nbsp;&nbsp;&nbsp; CBitmap bmpResample;<br>&nbsp;&nbsp;&nbsp; CImageList list;<br><br>&nbsp;&nbsp;&nbsp; if (XTPImageManager()-&gt;IsAlphaIconsImageListSupported())<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list.Create(size.cx, size.cy, ILC_COLOR32, 0, 1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bmpResample.Attach(hBitmap);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list.Add(&amp;bmpResample, (CBitmap*)NULL);<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; else<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list.Create(size.cx, size.cy, ILC_MASK | ILC_COLOR24, 0, 1);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; bmpResample.Attach(CXTPImageManager::ResampleAlphaLayer(hBitmap, RGB(255,255,255)));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; list.Add(&amp;bmpResample, RGB(255,255,255));<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; hIcon = list.ExtractIcon(0);<br>&nbsp;&nbsp;&nbsp; bmpResample.Detach();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; return hIcon;<br>}<br><br>Thanks oleg :)<br><br>Jan<br><br>]]>
   </description>
   <pubDate>Tue, 19 Feb 2008 04:31:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31327&amp;title=changes-to-imagemanager-missing-functionality#31327</guid>
  </item> 
  <item>
   <title><![CDATA[Changes to imagemanager, missing functionality : Obviously you didn&amp;#039;t try...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31273&amp;title=changes-to-imagemanager-missing-functionality#31273</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9593<br /><strong>Posted:</strong> 18 February 2008 at 3:43am<br /><br />Obviously you didn't try my solutions...]]>
   </description>
   <pubDate>Mon, 18 Feb 2008 03:43:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31273&amp;title=changes-to-imagemanager-missing-functionality#31273</guid>
  </item> 
  <item>
   <title><![CDATA[Changes to imagemanager, missing functionality :  Hi Oleg,i need it the other...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31271&amp;title=changes-to-imagemanager-missing-functionality#31271</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1796">Janomat</a><br /><strong>Subject:</strong> 9593<br /><strong>Posted:</strong> 18 February 2008 at 1:47am<br /><br />Hi Oleg,<br><br>i need it the other way round. I donīt want to copy a HBITMAP to the imagemanager, i need to get a HBITMAP or HICON FROM the Imagemanager. Even telling the imagemanager not to use ressources is the opposit of what i need and want.<br><br>Your solution ist:<br>&nbsp;&nbsp;&nbsp; // Summary:<br>&nbsp;&nbsp;&nbsp; //&nbsp;&nbsp;&nbsp;&nbsp; Copies data from an HBITMAP or CXTPImageManagerIconHandle object<br><br>I need functions to get the imagemanager to create a hicon or hbitmap of itīs internal image in memory and iīm wondering why the imagemanager doesnīt offer these.<br><br>Best regards,<br><br>Jan<br><br><br><br><br>]]>
   </description>
   <pubDate>Mon, 18 Feb 2008 01:47:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31271&amp;title=changes-to-imagemanager-missing-functionality#31271</guid>
  </item> 
  <item>
   <title><![CDATA[Changes to imagemanager, missing functionality : Hi,  Just copy it to som fre...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31257&amp;title=changes-to-imagemanager-missing-functionality#31257</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9593<br /><strong>Posted:</strong> 17 February 2008 at 5:04am<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>Just copy it to som fre handle:</DIV><DIV>&nbsp;</DIV><DIV>CXTPImageManagerIconHandle xtphIcon = icon.GetIcon();</DIV><DIV>CXTPImageManagerIconHandle hIconFree;</DIV><DIV>hIconFree.CopyHandle(xtphIcon);</DIV><DIV>&nbsp;</DIV><DIV>or don't use resources feature - pImageManager-&gt;m_bUseResources = FALSE;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Sun, 17 Feb 2008 05:04:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31257&amp;title=changes-to-imagemanager-missing-functionality#31257</guid>
  </item> 
  <item>
   <title><![CDATA[Changes to imagemanager, missing functionality : Hi there,while appreciating the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31222&amp;title=changes-to-imagemanager-missing-functionality#31222</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1796">Janomat</a><br /><strong>Subject:</strong> 9593<br /><strong>Posted:</strong> 15 February 2008 at 8:41am<br /><br />Hi there,<br><br>while<span style="text-decorati&#111;n: underline;"><span style="font-weight: bold;"></span></span> appreciating the changes in the imagemanager in reducing the amount of needed handles for storing all the content iīm missing some functionality. <br>In Toolkit 10.4 it was possible to extract the hbitmap or hicon from the imagemanager, depending on the way the image was stored in the imagemanger, with the following code.<br><br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIcon icon = XTPImageManager()-&gt;GetImage(IDC_MYICON, 16);<br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandle xtphIcon = icon.GetIcon();<br>&nbsp;&nbsp;&nbsp; HBITMAP hBitmap = xtphIcon.GetBitmap();<br>&nbsp;&nbsp;&nbsp; HICON hIcon = xtphIcon.GetIcon();<br><br>Now it is absolutly impossible to get these informations from the imagemanager. This leads to the need of storing hbitmaps and hicons in seperate stores having the side effect of even more handle allocations.<br><br>Why doesnīt the Imagemanager store appropriate functionality to create hbitmap and hicon from itīs internal store. <br><br>Am i missing something?<br><br>Thanks for reading so far, hoping for your answers :)<br><br>Jan<br><br><br> ]]>
   </description>
   <pubDate>Fri, 15 Feb 2008 08:41:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9593&amp;PID=31222&amp;title=changes-to-imagemanager-missing-functionality#31222</guid>
  </item> 
 </channel>
</rss>