<?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 : Skinning property sheet / OnCtlColor</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Skinning property sheet / OnCtlColor]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 10:43:23 +0000</pubDate>
  <lastBuildDate>Tue, 23 Jan 2007 11:27:17 +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=6186</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[Skinning property sheet / OnCtlColor : Hi, It was problem in 10.3/10.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6186&amp;PID=19634&amp;title=skinning-property-sheet-onctlcolor#19634</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6186<br /><strong>Posted:</strong> 23 January 2007 at 11:27am<br /><br /><P>Hi,</P><DIV></DIV>It was problem in 10.3/10.3.1 and <strong><EM>OnCtlColor</EM></strong> was not called. Now you can catch it and return&nbsp; color you need.<DIV>&nbsp;</DIV><DIV>Check XTPSkinMaanager()-&gt;GetEnabled() flag and return NULL...</DIV>]]>
   </description>
   <pubDate>Tue, 23 Jan 2007 11:27:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6186&amp;PID=19634&amp;title=skinning-property-sheet-onctlcolor#19634</guid>
  </item> 
  <item>
   <title><![CDATA[Skinning property sheet / OnCtlColor :     After upgrading from 10.3.1...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6186&amp;PID=19606&amp;title=skinning-property-sheet-onctlcolor#19606</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 6186<br /><strong>Posted:</strong> 22 January 2007 at 3:10pm<br /><br />After upgrading from 10.3.1 to 10.4 (as well as 10.4.1) some controls (labels, checkbox) are not skinned correctly anymore.<br><br>The problem is that OnCtlColor of the property page is overloaded and returns a white brush, because without skinning the background should be white.<br><br>Is this a bug or is the changed behaviour intended?<br><br><img src="uploads/20070122_183116_xtp_skinning_op.png" height="488" width="653" border="0"><br><br>To reproduce this:<br><br>In <u>SkinPropertyPageControls.h</u> add:<br><br><br><i>//{{AFX_MSG(CSkinPropertyPageControls)<br><b>afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);</b><br>virtual BOOL OnInitDialog();<br>//}}AFX_MSG</i><br><br>In <u>SkinPropertyPageControls.cpp</u> add:<br><br>//{{AFX_MSG_MAP(CSkinPropertyPageControls)<br><b>ON_WM_CTLCOLOR()</b><br>//}}AFX_MSG_MAP<br><br><b>HBRUSH CSkinPropertyPageControls::OnCtlColor (CDC *pDC, CWnd *pWnd, UINT nCtlColor)<br>{<br>&nbsp;&nbsp;&nbsp; pDC-&gt;SetBkMode (TRANSPARENT);<br>&nbsp;&nbsp;&nbsp; return ::GetSysColorBrush (COLOR_WINDOW);<br>}<br><br></b>]]>
   </description>
   <pubDate>Mon, 22 Jan 2007 15:10:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6186&amp;PID=19606&amp;title=skinning-property-sheet-onctlcolor#19606</guid>
  </item> 
 </channel>
</rss>