<?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 : CXTPSkinManagerLegacyApiHook::OnHookGetSysColor()</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : CXTPSkinManagerLegacyApiHook::OnHookGetSysColor()]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 10:43:14 +0000</pubDate>
  <lastBuildDate>Wed, 10 Feb 2021 04:03:44 +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=24131</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[CXTPSkinManagerLegacyApiHook::OnHookGetSysColor() : Hello!I believe there&amp;#039;s a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24131&amp;PID=78043&amp;title=cxtpskinmanagerlegacyapihookonhookgetsyscolor#78043</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9463">MaxG</a><br /><strong>Subject:</strong> 24131<br /><strong>Posted:</strong> 10 February 2021 at 4:03am<br /><br />Hello!<div>I believe there's a bug in Toolkit for MFC v19.3.0 in&nbsp;<b>CXTPSkinManagerLegacyApiHook::OnHookGetSysColor()</b>:<div><br></div><div>original:</div><div><div><font face="Courier New, Courier, mono">CXTPSkinManagerMetrics* pMetrics = XTPSkinManager()-&gt;GetMetrics();</font></div><div><font face="Courier New, Courier, mono">if (NULL != pMetrics &amp;&amp; pSkinManager-&gt;IsEnabled())</font></div><div><font face="Courier New, Courier, mono">{</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>crColor<span style="white-space:pre">		</span>&nbsp; &nbsp;= pMetrics-&gt;GetColor(nIndex);</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>bDefaultProcessing = <b>(COLORREF_NULL != crColor)</b>;</font></div><div><font face="Courier New, Courier, mono">}</font></div></div><div><font face="Courier New, Courier, mono"><br></font></div><div>expected:</div><div><div style="font-family: &quot;Courier New&quot;, Courier, mono;">CXTPSkinManagerMetrics* pMetrics = XTPSkinManager()-&gt;GetMetrics();</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;">if (NULL != pMetrics &amp;&amp; pSkinManager-&gt;IsEnabled())</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;">{</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;"><span style="white-space:pre">	</span>crColor<span style="white-space:pre">		</span>&nbsp; &nbsp;= pMetrics-&gt;GetColor(nIndex);</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;"><span style="white-space:pre">	</span>bDefaultProcessing = <b>(COLORREF_NULL == crColor)</b>;</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;">}</div><div style="font-family: &quot;Courier New&quot;, Courier, mono;"><br></div><div style="">So there should be == operator when comparing retrieved color to COLORREF_NULL. Otherwise, themed colors are replaced with the system colors.</div></div></div><div style=""><br></div><div style="">Thanks!</div>]]>
   </description>
   <pubDate>Wed, 10 Feb 2021 04:03:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24131&amp;PID=78043&amp;title=cxtpskinmanagerlegacyapihookonhookgetsyscolor#78043</guid>
  </item> 
 </channel>
</rss>