<?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 : Updated Office2003 theme - 2000 and below</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Updated Office2003 theme - 2000 and below]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 23:09:15 +0000</pubDate>
  <lastBuildDate>Sun, 25 Jul 2004 23:22:32 +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=981</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[Updated Office2003 theme - 2000 and below :   ///////////////////////////...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=981&amp;PID=2576&amp;title=updated-office2003-theme-2000-and-below#2576</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 981<br /><strong>Posted:</strong> 25 July 2004 at 11:22pm<br /><br /><font size="1"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;"> //////////////////////////////////////////////////////////// ////////////////</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">// CXTPDockingPaneOffice2003ThemeEx</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">class CXTPDockingPaneOffice2003ThemeEx : public CXTPDockingPaneOffice2003Theme</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">public:</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003ThemeEx(BOOL bGreyToBlue = TRUE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; virtual void DrawCaption(CDC&amp; dc, CXTPDockingPaneTabbedContainer* pPane, CRect rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; virtual void DrawFloatingFrame(CDC&amp; dc, CXTPDockingPaneMiniWnd* pPane, CRect rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; BOOL m_bGreyToBlue;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">protected:</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; virtual void RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">};</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;"> //////////////////////////////////////////////////////////// ////////////////</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">// CColorSetOffice2003Ex</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">class CColorSetOffice2003Ex : public CXTPTabPaintManager::CColorSetOffice2003</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">public:</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; CColorSetOffice2003Ex(BOOL bGreyToBlue = TRUE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; BOOL m_bGreyToBlue;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">protected:</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; virtual void RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">};</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;"> //////////////////////////////////////////////////////////// ////////////////</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">// CXTPDockingPaneOffice2003ThemeEx</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;"> CXTPDockingPaneOffice2003ThemeEx::CXTPDockingPaneOffice2003T hemeEx(BOOL bGreyToBlue)</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_bGreyToBlue = bGreyToBlue;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">void CXTPDockingPaneOffice2003ThemeEx::DrawCaption(CDC&amp; dc, CXTPDockingPaneTabbedContainer* pPane, CRect rc)</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; if( pPane-&gt;IsActive() ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLORREF oldDark = m_clrCommandBarDark,</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oldLight = m_clrCommandBarLight;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( m_bLunaTheme ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark = RGB(255, 166, 76);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = RGB(255, 212, 139);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark  =XTPColorManager()-&gt;LightColor(m_clrCommandBarDark,m_ clrCommandBarLight, 50);&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = m_clrCommandBarDark;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003Theme::DrawCaption(dc, pPane, rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark = oldDark;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = oldLight;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; } else {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003Theme::DrawCaption(dc, pPane, rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">void CXTPDockingPaneOffice2003ThemeEx::DrawFloatingFrame(CDC&amp; dc, CXTPDockingPaneMiniWnd* pPane, CRect rc)</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; if( pPane-&gt;IsActive() ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLORREF oldDark = m_clrCommandBarDark,</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; oldLight = m_clrCommandBarLight;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( m_bLunaTheme ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark = RGB(255, 166, 76);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = RGB(255, 212, 139);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } else {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark  =XTPColorManager()-&gt;LightColor(m_clrCommandBarDark,m_ clrCommandBarLight, 50);&nbsp;&nbsp;&nbsp; </span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = m_clrCommandBarDark;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003Theme::DrawFloatingFrame(dc, pPane, rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark = oldDark;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = oldLight;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; } else {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003Theme::DrawFloatingFrame(dc, pPane, rc);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">void CXTPDockingPaneOffice2003ThemeEx::RefreshMetrics()</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; CXTPDockingPaneOffice2003Theme::RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; if( !m_bLunaTheme ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPColorManager *pClrMgr = XTPColorManager();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLORREF btn = pClrMgr-&gt;GetColor(COLOR_BTNFACE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( m_bGreyToBlue &amp;&amp; (btn == RGB(192, 192, 192) || btn == RGB(212, 208, 200)) ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarDark = RGB(129, 169, 226);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrCommandBarLight = RGB(221, 236, 254);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_bLunaTheme = TRUE;</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;0&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;1&#093; = RGB(0, 78, 152);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;2&#093; = RGB(0, 84, 227);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;3&#093; = RGB(122, 150, 223);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;4&#093; = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;5&#093; = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;6&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;7&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;8&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;9&#093; = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;10&#093; = RGB(212, 208, 200);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;11&#093; = RGB(212, 208, 200);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;12&#093; = RGB(128, 128, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;13&#093; = RGB(49, 106, 197);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;14&#093; = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">//&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;15&#093; = RGB(236, 233, 216);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;15&#093; = btn;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;16&#093; = RGB(172, 168, 153);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;17&#093; = RGB(172, 168, 153);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;18&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;19&#093; = RGB(216, 228, 248);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;20&#093; = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;21&#093; = RGB(113, 111, 100);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;22&#093; = RGB(251, 248, 231);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;23&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;24&#093; = RGB(255, 255, 225);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;25&#093; = RGB(181, 181, 181);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;26&#093; = RGB(0, 0, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;27&#093; = RGB(61, 149, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;28&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;29&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;30&#093; = RGB(158, 190, 245);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;31&#093; = RGB(255, 238, 194);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;32&#093; = RGB(0, 0, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;33&#093; = RGB(254, 128, 62);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;34&#093; = RGB(144, 157, 178);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;35&#093; = RGB(197, 194, 184);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;36&#093; = RGB(255, 192, 111);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;37&#093; = RGB(0, 0, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;38&#093; = RGB(39, 65, 118);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;39&#093; = RGB(106, 140, 203);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;40&#093; = RGB(109, 150, 208);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;41&#093; = RGB(246, 246, 246);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;42&#093; = RGB(230, 227, 210);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;43&#093; = RGB(0, 45, 150);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;44&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;45&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;46&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;47&#093; = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;48&#093; = RGB(218, 233, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;49&#093; = RGB(129, 126, 114);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;50&#093; = RGB(0, 0, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;51&#093; = RGB(216, 231, 252);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;52&#093; = RGB(158, 190, 245);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;53&#093; = RGB(203, 225, 252);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;54&#093; = RGB(0, 45, 150);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_arrColor&#091;55&#093; = RGB(196, 218, 250);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;"> //////////////////////////////////////////////////////////// ////////////////</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">// CColorSetOffice2003Ex</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">CColorSetOffice2003Ex::CColorSetOffice2003Ex(BOOL bGreyToBlue)</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_bGreyToBlue = bGreyToBlue;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">//&nbsp;&nbsp;&nbsp; RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}</span><br style="font-family: courier new,courier,mono;"><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">void CColorSetOffice2003Ex::RefreshMetrics()</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">{</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; CColorSetOffice2003::RefreshMetrics();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; if( !m_bLunaTheme ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CXTPColorManager *pClrMgr = XTPColorManager();</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLORREF btn = pClrMgr-&gt;GetColor(COLOR_BTNFACE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( m_bGreyToBlue &amp;&amp; (btn == RGB(192, 192, 192) || btn == RGB(212, 208, 200)) ) {</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrHeaderFace.clrLight = RGB(196, 218, 250);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrHeaderFace.clrDark = RGB(252, 253, 254);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrAutoHideFace.clrLight = RGB(158, 190, 245);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrAutoHideFace.clrDark = RGB(196, 218, 250);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrFrameBorder = RGB(59, 97, 156);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrControlFace = RGB(236, 233, 216);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrHighlight = RGB(255, 255, 255);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrButtonSelected = RGB(255, 194, 115);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrButtonNormal = RGB(162, 192, 246);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrNormalText = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrInActiveText = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrSelectedText = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrHighlightText = RGB(0, 0, 0);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrDisabledText = RGB(172, 168, 153);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrButtonHighlighted = RGB(255, 240, 201);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_clrNavigateButtonBorder = RGB(0, 0, 128);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; m_bLunaTheme = TRUE;</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; }</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">}<br><br></span></font><span style="font-weight: bold;">Sample Usage:</span><br><font size="1"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_paneManager.InstallDockingPanes(this);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_paneManager.UseSplitterTracker(FALSE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_paneManager.SetThemedFloatingFrames(TRUE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_paneManager.SetAlphaDockingContext(TRUE);</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp; m_paneManager.SetCustomTheme(new CXTPDockingPaneOffice2003ThemeEx());</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp;  m_paneManager.GetPaintManager()-&gt;m_pTabPaintManager-&gt;S etColorSet(new CColorSetOffice2003Ex());</span><br style="font-family: courier new,courier,mono;"><span style="font-family: courier new,courier,mono;">&nbsp;&nbsp;&nbsp;  m_paneManager.GetPaintManager()-&gt;m_pPanelPaintManager-&gt ;SetColorSet(new CColorSetOffice2003Ex());</span></font><br><br><span style="font-family: arial,helvetica,sans-serif;">I also have alittle hackish code that highlights the panes when they have focus bycoloring the caption orange, similar to how Office 2003 actually doesit sometimes. So you will see a pane go from </span><font style="font-family: arial,helvetica,sans-serif;" size="1"><img src="uploads/Ark42/2004-07-25_232016_normal.png" border="0"> to </font><font style="font-family: arial,helvetica,sans-serif;" size="1"><img style="width: 75px; height: 23px;" src="uploads/Ark42/2004-07-25_232028_focus.png" border="0"> when it gets focus.&nbsp; It works on the new </font><font style="font-family: arial,helvetica,sans-serif;" size="1">SetThemedFloatingFrames style too.</font><font size="1"><span style="font-family: courier new,courier,mono;"></span><br style="font-family: courier new,courier,mono;"></font>]]>
   </description>
   <pubDate>Sun, 25 Jul 2004 23:22:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=981&amp;PID=2576&amp;title=updated-office2003-theme-2000-and-below#2576</guid>
  </item> 
 </channel>
</rss>