<?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 : CXTPImageManagerIconHandle copy constructor</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPImageManagerIconHandle copy constructor]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 21:59:50 +0000</pubDate>
  <lastBuildDate>Wed, 09 Mar 2022 10:17:55 +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=24273</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[CXTPImageManagerIconHandle copy constructor : Ok, thanks for the informations.Regards...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78406&amp;title=cxtpimagemanagericonhandle-copy-constructor#78406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9141">Julianis</a><br /><strong>Subject:</strong> 24273<br /><strong>Posted:</strong> 09 March 2022 at 10:17am<br /><br />Ok, thanks for the informations.<br><br>Regards<br>]]>
   </description>
   <pubDate>Wed, 09 Mar 2022 10:17:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78406&amp;title=cxtpimagemanagericonhandle-copy-constructor#78406</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPImageManagerIconHandle copy constructor : It is definitely a bad design,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78405&amp;title=cxtpimagemanagericonhandle-copy-constructor#78405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8199">astoyan</a><br /><strong>Subject:</strong> 24273<br /><strong>Posted:</strong> 08 March 2022 at 11:59am<br /><br />It is definitely a bad design, but it was necessary to do so in order to preserve the backward compatibility with the legacy class implementation that did not support various icon types. Fixing that behavior in constructor will lead to a lot more problems for those who has lots of dependencies on that class for a while.<div><br></div><div>Regards,</div><div>&nbsp; &nbsp;Alexander</div>]]>
   </description>
   <pubDate>Tue, 08 Mar 2022 11:59:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78405&amp;title=cxtpimagemanagericonhandle-copy-constructor#78405</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPImageManagerIconHandle copy constructor : We noticed that when using CXTPImageManagerIconHandle,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78402&amp;title=cxtpimagemanagericonhandle-copy-constructor#78402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9141">Julianis</a><br /><strong>Subject:</strong> 24273<br /><strong>Posted:</strong> 22 February 2022 at 10:36am<br /><br />We noticed that when using CXTPImageManagerIconHandle, the copy constructor doesnt duplicate the handles when copying from a non shared handle:<br><br><div>CXTPImageManagerIconHandle A;<br><br></div><div>// loads a HBITMAP in A, A.m_bClearHandles set to TRUE<br></div>A.CreateIconFromResource(MAKEINTRESOURCE(ID_XXXX), CSize(32, 32));<br><br>// copy constructor, members are simply copied, so handle from A ends up in B<br>// but B.m_bClearHandles = FALSE<br>CXTPImageManagerIconHandle&nbsp; B(A);<br><br>// frees up handle<br>A.Clear();<br><br>// at this stage B still reference an invalid HBITMAP<br><br><br>I just modifed the copy constructor to call CopyHandle() if (hHandle.m_bClearHandles == TRUE)<br><br><br>Is it a bug or is there a design issue i missed ?<br><br>Regards<br>]]>
   </description>
   <pubDate>Tue, 22 Feb 2022 10:36:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24273&amp;PID=78402&amp;title=cxtpimagemanagericonhandle-copy-constructor#78402</guid>
  </item> 
 </channel>
</rss>