<?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 : CXTCapti&#111;n::UpdateCapti&#111;n ic&#111;n bug</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTCapti&#111;n::UpdateCapti&#111;n ic&#111;n bug]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 18:22:48 +0000</pubDate>
  <lastBuildDate>Tue, 28 Dec 2004 04:00:56 +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=1592</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[CXTCapti&#111;n::UpdateCapti&#111;n ic&#111;n bug : I noticed a tiny bug in CXTCaption::UpdateCaption. Bug...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1592&amp;PID=4543&amp;title=cxtcaptionupdatecaption-icon-bug#4543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=108">Kimeli</a><br /><strong>Subject:</strong> 1592<br /><strong>Posted:</strong> 28 December 2004 at 4:00am<br /><br />I noticed a tiny bug in CXTCaption::UpdateCaption.<br>Bug occurs when changing icon from "real icon" to "null icon".<br><br>In CXTCaption::UpdateCaption are following code:<br><br>&nbsp;&nbsp;&nbsp; if (hIcon != NULL)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_hIcon&nbsp;&nbsp;&nbsp; = hIcon;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DrawCaptionIcon( pDC, rcClient );<br>&nbsp;&nbsp;&nbsp; }<br><br>So if given icon is NULL, then CXTCaption::m_hIcon wont be updated and<br>previous icon will be painted when next update occurs (UpdateCaption seems<br>to work ok before next paint, because it erases background in UpdateCaption also).<br><br>Luckily, UpdateCaption is virtual, so it can be override. But that <br>if (hIcon != NULL) should be removed, set m_hIcon outside of<br>that scope, etc..<br><br>&#091;offtopic&#093;<br>Happy new year!<br>&#091;/offtopic&#093;<br><br><br>]]>
   </description>
   <pubDate>Tue, 28 Dec 2004 04:00:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1592&amp;PID=4543&amp;title=cxtcaptionupdatecaption-icon-bug#4543</guid>
  </item> 
 </channel>
</rss>