<?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 : Topic: How to change the CXTPReportControl theme?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Topic: How to change the CXTPReportControl theme?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 11:10:10 +0000</pubDate>
  <lastBuildDate>Wed, 16 Apr 2008 09:13:56 +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=9024</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[Topic: How to change the CXTPReportControl theme? :  I reach a good result with the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=33751&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#33751</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=976">pascal</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 16 April 2008 at 9:13am<br /><br /><FONT color=#020002><FONT color=#020002><FONT size=1><DIV>I reach a good result with the following applet:</DIV><DIV>&nbsp;</DIV><DIV>CXTPReportPaintManager</FONT></FONT></FONT><FONT size=1>* <FONT color=#020002><FONT color=#020002>pPaintManager</FONT></FONT> = <FONT color=#020002><FONT color=#020002>pReport</FONT></FONT>-&gt;<FONT color=#020002><FONT color=#020002>GetPaintManager</FONT></FONT>();<BR></FONT><FONT size=1><FONT color=#0000ff><FONT color=#0000ff>if</FONT></FONT>( <FONT color=#020002><FONT color=#020002>pPaintManager</FONT></FONT> )<BR></FONT><FONT size=1>{<BR></FONT><FONT size=1><FONT color=#020002><FONT color=#020002>&nbsp; XTPPaintTheme</FONT></FONT> <FONT color=#020002><FONT color=#020002>paintTheme</FONT></FONT> = <FONT color=#020002><FONT color=#020002>GetPaintTheme</FONT></FONT>();<BR></FONT><FONT size=1><FONT color=#0000ff><FONT color=#0000ff>&nbsp; if</FONT></FONT>( (<FONT color=#020002><FONT color=#020002>paintTheme</FONT></FONT> == <FONT color=#020002><FONT color=#020002>xtpThemeRibbon</FONT></FONT>) || (<FONT color=#020002><FONT color=#020002>paintTheme</FONT></FONT> == <FONT color=#020002><FONT color=#020002>xtpThemeOffice2007</FONT></FONT>) )<BR>&nbsp; </FONT><FONT size=1>{</FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp; <FONT color=#020002><FONT color=#020002>COLORREF</FONT></FONT> <FONT color=#020002><FONT color=#020002>crRef</FONT></FONT> = </FONT></DIV><DIV><FONT size=1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#020002><FONT color=#020002>XTPOffice2007Images</FONT></FONT>()-&gt;<FONT color=#020002><FONT color=#020002>GetImageColor</FONT></FONT>( <FONT color=#020002><FONT color=#020002>_T</FONT></FONT>(<FONT color=#a31515><FONT color=#a31515>"PropertyGrid"</FONT></FONT>), </FONT></DIV><DIV><FONT size=1><FONT color=#020002><FONT color=#020002>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _T</FONT></FONT>(<FONT color=#a31515><FONT color=#a31515>"Background"</FONT></FONT>));</FONT></DIV><P><FONT size=1><FONT color=#020002><FONT color=#020002>&nbsp;&nbsp;&nbsp; pPaintManager</FONT></FONT>-&gt;<FONT color=#020002><FONT color=#020002>SetColumnOffice2007CustomThemeBaseColor</FONT></FONT>(<FONT color=#020002><FONT color=#020002>crRef</FONT></FONT>);<BR></FONT><FONT size=1>&nbsp; }<FONT color=#008000><FONT color=#008000>// If<BR>&nbsp; <BR>&nbsp; </FONT></FONT></FONT><FONT size=1><FONT color=#020002><FONT color=#020002>pReport</FONT></FONT>-&gt;<FONT color=#020002><FONT color=#020002>RedrawControl</FONT></FONT>();<BR></FONT><FONT size=1>}</P><DIV>I use the same colors as for the property grid.</DIV><DIV><DIV></DIV><DIV></DIV>cheers</DIV><DIV></DIV>Pascal</FONT>]]>
   </description>
   <pubDate>Wed, 16 Apr 2008 09:13:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=33751&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#33751</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? : Same problem here. Isn&amp;#039;t...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=30312&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#30312</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 20 January 2008 at 2:27pm<br /><br />Same problem here. Isn't there a black theme for the report control? And aqua etc?]]>
   </description>
   <pubDate>Sun, 20 Jan 2008 14:27:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=30312&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#30312</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? :  Here is the SetUITheme(UINT...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29261&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29261</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3438">pkhach</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 08 December 2007 at 2:55am<br /><br />Here is the SetUITheme(UINT nMode) function code:<br><br>void CMainFrame::SetUITheme(UINT nMode)<br>{<br>&nbsp;&nbsp;&nbsp; HMODULE hModule = AfxGetInstanceHandle();<br><br>&nbsp;&nbsp;&nbsp; LPCTSTR lpszIniFile = 0;<br>&nbsp;&nbsp;&nbsp; switch (nMode)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case ID_VIEW_UITHEMES_BLUE: <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpszIniFile = _T("OFFICE2007BLUE.INI"); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case ID_VIEW_UITHEMES_SILVER: <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpszIniFile = _T("OFFICE2007SILVER.INI"); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case ID_VIEW_UITHEMES_BLACK: <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lpszIniFile = _T("OFFICE2007BLACK.INI"); <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; default:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ASSERT(FALSE);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; }<br><br>&nbsp;&nbsp;&nbsp; ((CXTPOffice2007Theme*)GetCommandBars()-&gt;GetPaintManager())-&gt;SetImageHandle(hModule, lpszIniFile);<br>&nbsp;&nbsp;&nbsp; ((CXTPOffice2007Theme*)XTPPaintManager())-&gt;SetImageHandle(hModule, lpszIniFile);<br>&nbsp;&nbsp;&nbsp; &nbsp;XTPOffice2007Images()-&gt;SetHandle(hModule, lpszIniFile);<br><br>&nbsp;&nbsp;&nbsp; //set thems<br>&nbsp;&nbsp;&nbsp; CXTPPaintManager::SetTheme(xtpThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; XTPPaintManager()-&gt;SetTheme(xtpThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; m_paneManager.SetTheme(xtpPaneThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; m_wndSummaryPane.SetTheme(xtpGridThemeOffice2007);<br>&nbsp;&nbsp;&nbsp; m_ctrlGrid.GetPaintManager()-&gt;SetColumnStyle(xtpReportColumnOffice2007);<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;GetToolTipContext()-&gt;SetStyle(xtpToolTipOffice2007);<br><br>&nbsp;&nbsp;&nbsp; XTPPaintManager()-&gt;RefreshMetrics();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;GetImageManager()-&gt;RefreshAll();<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;RedrawCommandBars();<br><br>&nbsp;&nbsp;&nbsp; m_ctrlGrid.GetPaintManager()-&gt;RefreshMetrics(); <br>&nbsp;&nbsp;&nbsp; m_ctrlGrid.RedrawControl();<br><br>&nbsp;&nbsp;&nbsp; SendMessage(WM_NCPAINT);<br>&nbsp;&nbsp;&nbsp; RedrawWindow(0, 0, RDW_ALLCHILDREN|RDW_INVALIDATE);<br>}<br><br>everything works OK, except that the report control (m_ctrlGrid.) does not change it's theme (say from blue to black).<br><br>Thanks,<br>KP<br>]]>
   </description>
   <pubDate>Sat, 08 Dec 2007 02:55:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29261&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29261</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? : Hi, How do you switch ? try to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29255&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29255</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 08 December 2007 at 2:32am<br /><br /><P>Hi,</P><DIV>How do you switch ? try to call same line again after you reload images.</DIV>]]>
   </description>
   <pubDate>Sat, 08 Dec 2007 02:32:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29255&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29255</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? : No chance?KP  ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29242&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29242</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3438">pkhach</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 07 December 2007 at 12:58pm<br /><br />No chance?&nbsp;<img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle"><br><br>KP<br>]]>
   </description>
   <pubDate>Fri, 07 Dec 2007 12:58:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29242&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29242</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? :  Yes,I am using the: GetRepor...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29224&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29224</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3438">pkhach</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 06 December 2007 at 1:31pm<br /><br />Yes,<br><br>I am using the: GetReportControl()-&gt;GetPaintManager()-&gt;SetColumnStyle(xtpReportColumnOffice2007);<br><br>for initially setting up the grid columns to Office 2007 style . <br>But I am unable to switch say from Blue to Silver or to Black mode without restarting the program (for command bars I can do this on the fly).<br><br>Thanks,<br>KP<br>]]>
   </description>
   <pubDate>Thu, 06 Dec 2007 13:31:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29224&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29224</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? : Hi,  Report has only theme for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29220&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29220</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 06 December 2007 at 12:48pm<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>Report has only theme for Column headers.</DIV><DIV>Use GetReportCtrl().GetPaintManager()-&gt;SetColumnStyle(); method.</DIV>]]>
   </description>
   <pubDate>Thu, 06 Dec 2007 12:48:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29220&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29220</guid>
  </item> 
  <item>
   <title><![CDATA[Topic: How to change the CXTPReportControl theme? :     Hello,I post this question...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29219&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29219</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3438">pkhach</a><br /><strong>Subject:</strong> 9024<br /><strong>Posted:</strong> 06 December 2007 at 12:45pm<br /><br />   Hello,<br><br>I post this question to <strong></strong><strong><strong><a href="forum_topics.asp?FID=38" target="_blank"><strong>Xtreme ReportControl</strong></a></strong></strong> forum, but without luck. Maybe here I will be more lucky...<br><br>******<br>How can I change the CXTPReportControl's theme on the fly?<br><br>I have studied how to change the theme for the Ribbon and Docking Panes, but how to do it for the CXTPReportControl?<br><br>The GetPaintManager()-&gt;RefreshMetrics() does not help.<br><br>I need something like this, but for the CXTPReportControl:<br>https://forum.codejock.com/forum_posts.asp?TID=8452<br>******<br><br>Thanks,<br>KP]]>
   </description>
   <pubDate>Thu, 06 Dec 2007 12:45:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9024&amp;PID=29219&amp;title=topic-how-to-change-the-cxtpreportcontrol-theme#29219</guid>
  </item> 
 </channel>
</rss>