<?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 : How to access CXTPTabPaintManager?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to access CXTPTabPaintManager?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 09:32:57 +0000</pubDate>
  <lastBuildDate>Wed, 26 Apr 2006 08:15:07 +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=4059</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[How to access CXTPTabPaintManager? : This is really embarrassing......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4059&amp;PID=12425&amp;title=how-to-access-cxtptabpaintmanager#12425</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1921">klisa</a><br /><strong>Subject:</strong> 4059<br /><strong>Posted:</strong> 26 April 2006 at 8:15am<br /><br /><P>This is really embarrassing... :)</P><FONT size=1><P>CXTPTabPaintManager* tabPaintManager = _paneManager.GetPaintManager()-&gt;GetTabPaintManager();</P></FONT>]]>
   </description>
   <pubDate>Wed, 26 Apr 2006 08:15:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4059&amp;PID=12425&amp;title=how-to-access-cxtptabpaintmanager#12425</guid>
  </item> 
  <item>
   <title><![CDATA[How to access CXTPTabPaintManager? : Hello, Does anyone know how to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4059&amp;PID=12424&amp;title=how-to-access-cxtptabpaintmanager#12424</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1921">klisa</a><br /><strong>Subject:</strong> 4059<br /><strong>Posted:</strong> 26 April 2006 at 7:02am<br /><br /><P><FONT size=1>Hello,</FONT></P><P><FONT size=1>Does anyone know how to access CXTPTabPaintManager within an SDI application? </FONT></P><P><FONT size=1>Also, is there only one instance of CXTPTabPaintManager per application, or each CXTPDockingPaneTabbedContainer has its own?</FONT></P><P><FONT size=1>Here is what I I tried in absence of a better idea (I know, it's a really stupid thing to do but I was desperate):<BR>&nbsp;- walking through all panes<BR>&nbsp;- checking if their containers are CXTPDockingPaneTabbedContainer(s) <BR>&nbsp;- for each CXTPDockingPaneTabbedContainer found, access its CXTPTabPaintManager through GetPaintManager()</FONT></P><P><FONT size=1>This is how the code looks like:</FONT></P><P><FONT size=1>&nbsp; CXTPDockingPaneInfoList&amp; lst = _paneManager.GetPaneList(); // CXTPDockingPaneManager _paneManager;<BR>&nbsp; POSITION pos = lst.GetHeadPosition();<BR>&nbsp; while (pos)<BR>&nbsp; {<BR>&nbsp;&nbsp;&nbsp; CXTPDockingPane* pane = (CXTPDockingPane*) lst.GetNext(pos);<BR>&nbsp;&nbsp;&nbsp; CXTPDockingPaneBase* container = pane-&gt;GetContainer();<BR>&nbsp;&nbsp;&nbsp; if (!container || container-&gt;GetType() != xtpPaneTypeTabbedContainer)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; continue;<BR>&nbsp;&nbsp;&nbsp; CXTPDockingPaneTabbedContainer* tabs =  static_cast&lt;CXTPDockingPaneTabbedContainer*&gt;(container );<BR>&nbsp;&nbsp;&nbsp; CXTPTabPaintManager* tabPaintManager = tabs-&gt;GetPaintManager();<BR>&nbsp;&nbsp;&nbsp;  tabPaintManager-&gt;GetColorSet()-&gt;m_clrHeaderFace.clrDar k = RGB(255,0,0);<BR>&nbsp;&nbsp;&nbsp;  tabPaintManager-&gt;GetColorSet()-&gt;m_clrHeaderFace.clrLig ht = RGB(0,0,255);<BR>&nbsp; }</FONT></P><P><FONT size=1>Unfortunately, CXTPDockingPaneTabbedContainer::GetPaintManager() is a protected method so the above code fails to compile.</FONT></P><P><FONT size=1>I'm sure there is a simple way to do the same thing.</FONT></P><P><FONT size=1>Thanks in advance for any help!</FONT></P><P><FONT size=1>&nbsp;</P></FONT>]]>
   </description>
   <pubDate>Wed, 26 Apr 2006 07:02:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4059&amp;PID=12424&amp;title=how-to-access-cxtptabpaintmanager#12424</guid>
  </item> 
 </channel>
</rss>