<?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 : GetSysColor / SkinFramework (Bug?)</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : GetSysColor / SkinFramework (Bug?)]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:18:08 +0000</pubDate>
  <lastBuildDate>Mon, 17 Jul 2006 15:47:51 +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=4603</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[GetSysColor / SkinFramework (Bug?) : Hi,  easy to fix MFCGridCtrl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14198&amp;title=getsyscolor-skinframework-bug#14198</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4603<br /><strong>Posted:</strong> 17 July 2006 at 3:47pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>easy to fix MFCGridCtrl&nbsp; than disable this&nbsp; window for SkinFramework :)</DIV><DIV>&nbsp;</DIV><DIV>in <FONT color=#0000ff size=2>void</FONT><FONT size=2> CGridCtrl::OnTimer(UINT nIDEvent)</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>replace</FONT></DIV><DIV><FONT size=2><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nIDEvent != WM_LBUTTONDOWN)</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><DIV>&nbsp;</DIV><DIV>to</DIV><DIV>&nbsp;</DIV><DIV><FONT size=2><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (nIDEvent != WM_LBUTTONDOWN)</P><P>{</P><P>CWnd::OnTimer(nIDEvent);</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2>;</P><P>}</P></FONT></FONT></FONT><FONT size=2></FONT></DIV></DIV>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 15:47:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14198&amp;title=getsyscolor-skinframework-bug#14198</guid>
  </item> 
  <item>
   <title><![CDATA[GetSysColor / SkinFramework (Bug?) : Here is a screenshot of the sheet...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14197&amp;title=getsyscolor-skinframework-bug#14197</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4603<br /><strong>Posted:</strong> 17 July 2006 at 1:29pm<br /><br /><DIV>Here is a screenshot of the sheet with skinning disabled. The Grid calls GetSysColor to get the color for the fixed cells. It's the same with the list control on the left.</DIV><DIV>&nbsp;</DIV><DIV>If I remove the xtpSkinApplyColors flag the list control is drawn correctly, but GetSysColor still return the wrong color.</DIV><DIV>&nbsp;</DIV><DIV><EM>DWORD dwApplyOptions = XTPSkinManager()-&gt;GetApplyOptions ();<BR>XTPSkinManager()-&gt;SetApplyOptions(dwApplyOptions &amp; ~xtpSkinApplyColors);<BR></EM></DIV><DIV><EM></EM>&nbsp;</DIV><DIV><EM>sheet.DoModal ();</EM></DIV><DIV><EM></EM>&nbsp;</DIV><DIV><EM>XTPSkinManager()-&gt;SetApplyOptions(dwApplyOptions);</EM></DIV><DIV>&nbsp;</DIV><DIV>I've also noticed several other bugs with the SkinFramework.</DIV><DIV>&nbsp;</DIV><DIV>The above code causes an assertion in <EM>CXTPSkinManagerApiHook::OnHookLoadLibraryA</EM> because <EM>GetInstance()-&gt;GetHookedFunction(xtpSkinApiLoadLibraryA);</EM> returns NULL the first time OnHookLoadLibrary is beeing called after disabling skinning / settings apply options.</DIV><DIV>&nbsp;</DIV><DIV>I'm using the popular MFCGridCtrl and if skinning is applied and then a scrollbar arrow pressed <U>the grid&nbsp;only scrolls once</U> but doesn't keep scrolling until the button is released. So you've to click/release, click/release to scroll through the grid.</DIV><DIV>&nbsp;</DIV><DIV>If I disable skinning with <EM>XTPSkinManager()-&gt;SetAutoApplyNewWindows (FALSE);</EM> before showing the sheet and then press the arrow button the grid keeps scrolling <U>but the scrollbar doesn't move</U>.</DIV><DIV>&nbsp;</DIV><DIV>If I don't load a skin everything works correctly, you press an arrow button and the grid start and keeps scrolling whilst the scrollbar moves up or down.<BR></DIV><DIV>&nbsp;</DIV><DIV><IMG height=565 src="https://forum.codejock.com/uploads/20060717_131726_skinned_opti&#111;ns.png" width=683 border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 13:29:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14197&amp;title=getsyscolor-skinframework-bug#14197</guid>
  </item> 
  <item>
   <title><![CDATA[GetSysColor / SkinFramework (Bug?) : Hello,  How do you see it? GetSysColor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14194&amp;title=getsyscolor-skinframework-bug#14194</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4603<br /><strong>Posted:</strong> 17 July 2006 at 12:43pm<br /><br /><DIV>Hello,</DIV><DIV>&nbsp;</DIV><DIV>How do you see it? GetSysColor is global function, how skinmanager can determine what window you want to draw? </DIV><DIV>&nbsp;</DIV><DIV>As solution remove xtpSkinApplyColors from ApplyOptions:</DIV><DIV>&nbsp;</DIV><DIV>XTPSkinManager()-&gt;SetApplyOptions(xtpSkinApplyMetrics | xtpSkinApplyFrame);<BR></DIV>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 12:43:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14194&amp;title=getsyscolor-skinframework-bug#14194</guid>
  </item> 
  <item>
   <title><![CDATA[GetSysColor / SkinFramework (Bug?) : If skinning is disabled for a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14193&amp;title=getsyscolor-skinframework-bug#14193</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1755">ABuenger</a><br /><strong>Subject:</strong> 4603<br /><strong>Posted:</strong> 17 July 2006 at 10:55am<br /><br />If skinning is disabled for a window GetSysColor (COLOR_3DFACE)&nbsp;still returns the color the item would get if it's skinned.<DIV>&nbsp;</DIV><DIV>The hook function should check wheter the window is skinned or not.</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 17 Jul 2006 10:55:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4603&amp;PID=14193&amp;title=getsyscolor-skinframework-bug#14193</guid>
  </item> 
 </channel>
</rss>