<?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 : How mix 2 CXTPImageManagerIconHandle?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : General Discussion : How mix 2 CXTPImageManagerIconHandle?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 17 May 2026 05:38:44 +0000</pubDate>
  <lastBuildDate>Fri, 29 Jan 2010 07:54:19 +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=15598</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[How mix 2 CXTPImageManagerIconHandle? : Solved!I use this function to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15598&amp;PID=56453&amp;title=how-mix-2-cxtpimagemanagericonhandle#56453</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 15598<br /><strong>Posted:</strong> 29 January 2010 at 7:54am<br /><br />Solved!<br>I use this function to get HICON:<br><table width="99%"><tr><td><pre class="BBcode">HICON CreateIconFromImageManagerIconHandle( CXTPImageManagerIconHandle&amp; hHandle )<br>{<br>&nbsp;&nbsp;&nbsp; class CXTPImageManagerIconHandleCreateIcon : public CXTPImageManagerIconHandle<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; public:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; HICON CreateHICON()<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( m_hIcon != NULL )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return ::CopyIcon( m_hIcon );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else if ( m_pRInfo != NULL )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandleCreateIcon hHandle;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_pRInfo-&gt;pResource-&gt;CreateIcon( hHandle, m_pRInfo );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return hHandle.CreateHICON();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; else if ( m_hBitmap != NULL )<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if ( m_pBits != NULL )<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; CXTPImageManagerIconHandleCreateIcon hHandle;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; hHandle.CopyHandle( m_hBitmap );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return hHandle.CreateHICON();<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; if ( m_szIcon.cx &gt; 0 &amp;&amp; m_szIcon.cy )<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; CImageList il;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; il.Create( m_szIcon.cx, m_szIcon.cy, ILC_COLOR32, 0, 1 );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; il.Add( CBitmap::FromHandle( m_hBitmap ), (CBitmap*)NULL );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return il.ExtractIcon( 0 );<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return NULL;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp; CXTPImageManagerIconHandleCreateIcon&amp; hIcon = (CXTPImageManagerIconHandleCreateIcon&amp;)hHandle;<br>&nbsp;&nbsp;&nbsp; return hIcon.CreateHICON();<br>}</pre></td></tr></table>]]>
   </description>
   <pubDate>Fri, 29 Jan 2010 07:54:19 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15598&amp;PID=56453&amp;title=how-mix-2-cxtpimagemanagericonhandle#56453</guid>
  </item> 
  <item>
   <title><![CDATA[How mix 2 CXTPImageManagerIconHandle? : I get 2 icons from CXTPImageManager...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15598&amp;PID=54767&amp;title=how-mix-2-cxtpimagemanagericonhandle#54767</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4605">zitz</a><br /><strong>Subject:</strong> 15598<br /><strong>Posted:</strong> 12 November 2009 at 2:33am<br /><br />I get 2 icons from CXTPImageManager (Is Alpha icons), I want Apply(mix/impose/lay on/&#1085;&#1072;&#1083;&#1086;&#1078;&#1080;&#1090;&#1100;) one icon to another, and add to CXTPImageManager.<br><br>I have<br><b>CXTPImageManagerIconHandle h1;</b><br>and<br><b>CXTPImageManagerIconHandle h2;</b><br><div id="result_" dir="ltr">I want to get</div><b>CXTPImageManagerIconHandle h3 = Mix( h1, h2 );</b><br><br>How?<br>]]>
   </description>
   <pubDate>Thu, 12 Nov 2009 02:33:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15598&amp;PID=54767&amp;title=how-mix-2-cxtpimagemanagericonhandle#54767</guid>
  </item> 
 </channel>
</rss>