<?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 : CXTPTabClientWnd and Custom Themes</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTPTabClientWnd and Custom Themes]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 16 Apr 2026 08:23:03 +0000</pubDate>
  <lastBuildDate>Fri, 25 Feb 2005 12:20:58 +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=1861</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[CXTPTabClientWnd and Custom Themes : Just to followup with an actual...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1861&amp;PID=5406&amp;title=cxtptabclientwnd-and-custom-themes#5406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=886">AndyS</a><br /><strong>Subject:</strong> 1861<br /><strong>Posted:</strong> 25 February 2005 at 12:20pm<br /><br /><P>Just to followup with an actual fix. After some trials it seems the most effective fix is to hijack the m_themeCommandBars member and set this to custom during non AutoTheme operation. The following makes it all work perfectly.</P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono" size=2>class</FONT></FONT><FONT size=2><FONT face="Courier New, Courier, mono"> CXTPTabClientWndEx : <FONT color=#0000ff>public</FONT></FONT><FONT face="Courier New, Courier, mono"> CXTPTabClientWnd</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>{</FONT></P><FONT color=#0000ff><P><FONT face="Courier New, Courier, mono" size=2>public</FONT></FONT><FONT face="Courier New, Courier, mono" size=2>:</FONT></P><P><FONT size=2><FONT face="Courier New, Courier, mono" color=#0000ff>void</FONT><FONT face="Courier New, Courier, mono"> SetPaintManager(CXTPTabPaintManager* pPaintManager)</FONT></FONT></P><P><FONT face="Courier New, Courier, mono" size=2>{</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>m_themeCommandBars = xtpThemeCustom;</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>CXTPTabClientWnd::SetPaintManager(pPaintManager);</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>}</FONT></P><P><FONT face="Courier New, Courier, mono" size=2>};</FONT></P>]]>
   </description>
   <pubDate>Fri, 25 Feb 2005 12:20:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1861&amp;PID=5406&amp;title=cxtptabclientwnd-and-custom-themes#5406</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPTabClientWnd and Custom Themes : OK, maybe I&amp;#039;m going a bit...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1861&amp;PID=5404&amp;title=cxtptabclientwnd-and-custom-themes#5404</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=886">AndyS</a><br /><strong>Subject:</strong> 1861<br /><strong>Posted:</strong> 25 February 2005 at 12:03pm<br /><br /><P>OK, maybe I'm going a bit far here but I'll post anyway in the hope this helps someone or maybe stimulate some sort of fix.</P><P>The issue is that when setting a custom paint manager into an XTPTabClientWnd (the tab controller in an MDI app) we get problems on shifting back to a regular paint manager job. Why am I doing this?, well it's to give the user choice of small set of visual themes for the app and one of these is the Whidbey style which is a custom theme job. All well so far but the other styles are simple autothemes derived from the current command bars theme. In principle this is supported just fine.</P><P>To pull this off I need to reset the "m_bAutoMode" flag in the class to force it to go back to folling the command bars theme. There's a proper accessor method so I'm guessing this is OK. The problem is that the internal state variable m_themecommandBars is still hanging onto the previous value so doesn't auto update. Try switching from autotheme to customtheme and back to see what I mean and you'll be stuck with the custom theme forever.</P><P>The fix, easy enough. Need to invalidate the m_themecommandBars member on switching to a custom theme via the SetPaintManager method. Just like the AutoTHeme member is switched off. Either that or (even better) invalidate in the SetAutoTheme accessor. Overloaded for the time being and it's all tickety boo.</P><P>Maybe that helps someone?</P>]]>
   </description>
   <pubDate>Fri, 25 Feb 2005 12:03:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1861&amp;PID=5404&amp;title=cxtptabclientwnd-and-custom-themes#5404</guid>
  </item> 
 </channel>
</rss>