<?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 : Skin manager bug?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : Skin manager bug?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 14:58:38 +0000</pubDate>
  <lastBuildDate>Tue, 10 Dec 2013 00:31:09 +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=21992</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[Skin manager bug? : Hi Tom,Thanks for the suggestion,I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21992&amp;PID=72104&amp;title=skin-manager-bug#72104</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 21992<br /><strong>Posted:</strong> 10 December 2013 at 12:31am<br /><br />Hi Tom,<div><br></div><div><span style="line-height: 1.4;">Thanks for the suggestion,&nbsp;</span>I included your fix for the next scheduled update.</div><div><br></div><div>Cheers!</div>]]>
   </description>
   <pubDate>Tue, 10 Dec 2013 00:31:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21992&amp;PID=72104&amp;title=skin-manager-bug#72104</guid>
  </item> 
  <item>
   <title><![CDATA[Skin manager bug? : I have several static controls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=21992&amp;PID=71840&amp;title=skin-manager-bug#71840</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8342">TomSerface</a><br /><strong>Subject:</strong> 21992<br /><strong>Posted:</strong> 12 November 2013 at 11:44am<br /><br />I have several static controls where I need to get the WM_COLORSTATIC message to do some background coloring and when I loaded a skin I no longer got that notification. &nbsp;I tracked the problem down to code in file XTPSkinObjectFrame.cpp in a routine called OnHookDefWindowProc starting on line 751. &nbsp;It was not looking to see if there was a message handler defined before coloring the background. &nbsp;I changed the code to add in the check below and that fixed my problem. &nbsp;The code wasn't changed in the latest release. &nbsp;This isn't a huge problem unless you want some static controls to have a different background than the skin.<div><br><div><span style="font-size: small; font-family: C&#111;nsolas; line-height: 1.4;">BOOL&nbsp;CXTPSkinObjectFrame::OnHookDefWindowProc(UINT&nbsp;nMessage,&nbsp;WPARAM&amp;&nbsp;wParam,&nbsp;LPARAM&amp;&nbsp;lParam,&nbsp;LRESULT&amp;&nbsp;lResult)</span></div><div><pre style="font-family: C&#111;nsolas;"><font size="2">{	</font><span style="font-size: small; color: blue;">if</span><font size="2">&nbsp;(</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORBTN</span><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;==&nbsp;nMessage&nbsp;||		&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORDLG</span><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;==&nbsp;nMessage&nbsp;||		&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORSTATIC</span><font size="2">&nbsp;&nbsp;==&nbsp;nMessage&nbsp;||		&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLOREDIT</span><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;==&nbsp;nMessage&nbsp;||		&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORLISTBOX</span><font size="2">&nbsp;==&nbsp;nMessage)	{		</font><span style="font-size: small; color: blue;">if</span><font size="2">&nbsp;(m_strClassName&nbsp;==&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">_T</span><font size="2">(</font><span style="font-size: small; color: rgb163, 21, 21;">"COMBOBOX"</span><font size="2">))			</font><span style="font-size: small; color: blue;">return</span><font size="2">&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">FALSE</span><font size="2">; 		</font><b><font size="3"><span style="color: blue;">if</span>&nbsp;(IsDefWindowProcAvail(nMessage)&nbsp;&amp;&amp;			(m_dwDialogTexture&nbsp;!=&nbsp;<span style="color: rgb111, 0, 138;">ETDT_ENABLETAB</span>&nbsp;||&nbsp;!m_bActiveX))		{			<span style="color: blue;">return</span>&nbsp;<span style="color: rgb111, 0, 138;">FALSE</span>;		}</font></b><font size="2"> 		</font><span style="font-size: small; color: blue;">if</span><font size="2">&nbsp;(nMessage&nbsp;==&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLOREDIT</span><font size="2">&nbsp;||&nbsp;nMessage&nbsp;==&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORLISTBOX</span><font size="2">)		{			::SetBkColor((HDC)wParam,&nbsp;GetColor(</font><span style="font-size: small; color: rgb111, 0, 138;">COLOR_WINDOW</span><font size="2">));			::SetTextColor((HDC)wParam,&nbsp;GetColor(</font><span style="font-size: small; color: rgb111, 0, 138;">COLOR_WINDOWTEXT</span><font size="2">));			lResult&nbsp;=&nbsp;(LRESULT)GetMetrics()-&gt;m_brushWindow;			</font><span style="font-size: small; color: blue;">return</span><font size="2">&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">TRUE</span><font size="2">;		} 		</font><span style="font-size: small; color: blue;">if</span><font size="2">&nbsp;(CWnd::GrayCtlColor((HDC)wParam,&nbsp;(HWND)lParam,			(UINT)(nMessage&nbsp;-&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORMSGBOX</span><font size="2">),			GetMetrics()-&gt;m_brushDialog,&nbsp;0))		{			lResult&nbsp;=&nbsp;(LRESULT)GetClientBrush((HDC)wParam,&nbsp;(HWND)lParam,&nbsp;(UINT)(nMessage&nbsp;-&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">WM_CTLCOLORMSGBOX</span><font size="2">));			</font><span style="font-size: small; color: blue;">return</span><font size="2">&nbsp;</font><span style="font-size: small; color: rgb111, 0, 138;">TRUE</span><font size="2">;		}	} 	</font><span style="font-size: small; color: blue;">return</span><font size="2">&nbsp;CXTPSkinObject::OnHookDefWindowProc(nMessage,&nbsp;wParam,&nbsp;lParam,&nbsp;lResult);}</font><span style="font-size: 13px;"> </span></pre></div></div>]]>
   </description>
   <pubDate>Tue, 12 Nov 2013 11:44:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=21992&amp;PID=71840&amp;title=skin-manager-bug#71840</guid>
  </item> 
 </channel>
</rss>