<?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 : v17 (final) Forgot Theme on CXTPTreeCtrl</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : v17 (final) Forgot Theme on CXTPTreeCtrl]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 00:08:41 +0000</pubDate>
  <lastBuildDate>Mon, 26 Aug 2019 18:08:24 +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=22842</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[v17 (final) Forgot Theme on CXTPTreeCtrl : how have you solved the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=77464&amp;title=v17-final-forgot-theme-on-cxtptreectrl#77464</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9291">adamg</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 26 August 2019 at 6:08pm<br /><br /><div>how have you solved the problem with themes?</div><div>how do you solve the issues with not themed scrollbars?</div><div><br></div><div>Adam<br></div>]]>
   </description>
   <pubDate>Mon, 26 Aug 2019 18:08:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=77464&amp;title=v17-final-forgot-theme-on-cxtptreectrl#77464</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : I&amp;#039;m talking about the standard...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74363&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74363</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 23 January 2016 at 4:27am<br /><br />I'm talking about the standard CXTPListCtrl (a list of items), and the CXTPTreeCtrl (a list of items with different levels). I know that these are inherited directly from the MFC versions, and normally these are using the Windows colors selected.<div><br></div><div>But since most other controls, button, combo boxes, edit etc. in the XTToolkit are themed, I find it strange that the lists above are not fully themed. Nothing more than that.</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Sat, 23 Jan 2016 04:27:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74363&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74363</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : Hello cpede - Sorry, perhaps I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74361&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74361</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 22 January 2016 at 1:53pm<br /><br />Hello cpede - <br><br>Sorry, perhaps I didn't understand your question. I don't know if v. 17 has the same capability as the v. 16.26 I'm using, but it has been possible to theme the header of a CXTPListCtrl for some time. As shown:<br><br>// xtpControlThemeResource is an XTPControlTheme enum. Any of the enums should work.<br><br>bool MyListCtrl::Init()<br>{<br>&nbsp;&nbsp; &nbsp;CXTPListCtrl::Init();<br>&nbsp;&nbsp;&nbsp; HWND hWndHeader = GetDlgItem(0)-&gt;GetSafeHwnd();<br>&nbsp;&nbsp;&nbsp; m_header.SubclassWindow(hWndHeader);<br>&nbsp;&nbsp; &nbsp;m_header.EnablePopupMenus(TRUE);<br>&nbsp;&nbsp;&nbsp; m_header.SetTheme(xtpControlThemeResource);<br>&nbsp;&nbsp; &nbsp;return true;<br>}<br><br>I agree the developer should be able to choose when and where to apply themes/skins.<br><br><br>]]>
   </description>
   <pubDate>Fri, 22 Jan 2016 13:53:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74361&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74361</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : My original question was regarding...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74356&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 22 January 2016 at 1:46am<br /><br />My original question was regarding the difference in the CXTPTreeCtrlView and the CXTPListCtrl<span style="line-height: 13.44px;">View</span>&nbsp;regarding themes.<div><br></div><div>It is somehow possible to theme the&nbsp;<span style="line-height: 13.44px;">CXTPTreeCtrlView, but there is no code for theming the&nbsp;</span><span style="line-height: 13.44px;">CXTPListCtrl</span><span style="line-height: 13.44px;">View.</span></div><div><span style="line-height: 13.44px;"><br></span></div><div><span style="line-height: 13.44px;">I am aware of the conflict between theming (and skinning) controls, and then the general Windows styles, but I think that this should be up to the programmer to decide. Sometimes (maybe even often) a&nbsp;</span><span style="line-height: 13.44px;">CXTPTreeCtrlView or&nbsp;</span><span style="line-height: 13.44px;">CXTPListCtrlView is used in a prominent place in an application, and therefore it would be logical to apply a local theme to it.</span></div><div><span style="line-height: 13.44px;"><br></span></div><div><span style="line-height: 13.44px;">-cpede</span></div>]]>
   </description>
   <pubDate>Fri, 22 Jan 2016 01:46:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74356&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74356</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : It&amp;#039;s relatively simple to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74355&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2657">Algae</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 21 January 2016 at 11:33pm<br /><br />It's relatively simple to configure yourself. I use the old hack:<br><br>ON_WM_SYSCOLORCHANGE()<br><br>// in cpp where you set the theme. I use mainframe since it's global:<br><br>SendMessageToDescendants(WM_SYSCOLORCHANGE, 0, 0L, TRUE, FALSE);<br><br>// When you change a theme, the message is posted to descendants of the mainframe. Each module can respond to the message with something similar to that illustrated below:<br><br>// in header<br>afx_msg void OnSysColorChange();<br><br>// in cpp<br>BEGIN_MESSAGE_MAP<br>&nbsp;&nbsp;&nbsp;&nbsp; ON_WM_SYSCOLORCHANGE()<br><br>// make a handler using the theme value from wherever you set themes from. Again, mine is stored in mainframe.<br><br>void CMyReportView::OnSysColorChange()<br>{<br>&nbsp;&nbsp;&nbsp; GetReportCtrl().SetTheme(((CMainFrame*)AfxGetMainWnd())-&gt;GetReportTheme());<br>&nbsp;&nbsp;&nbsp; GetReportCtrl().RedrawControl();<br>}<br><br>Unless you use WM_SYSCOLORCHANGE for anything else, you should be good to go. <br><br>Unfortunately, there is no "one theme fits all" integrated method for all controls. It becomes problematic if you want some things to use a common theme and other things you don't - perhaps it requires something like a "theme override" byte for each control? That's how I'd do it&nbsp;<img src="http://forum.codejock.com/smileys/smiley4.gif" border="0" alt="Big smile" title="Big smile" /> <br><br>The current CJ method offers more flexibility but makes it more difficult to create a single pattern for changing themes.<br>]]>
   </description>
   <pubDate>Thu, 21 Jan 2016 23:33:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74355&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74355</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : I can see that the CXTPTaskDialog...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74311&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74311</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 14 January 2016 at 5:14am<br /><br /><div>I can see that the CXTPTaskDialog is not themed either :-(</div><div><br></div>OK, what I'm&nbsp;<span style="line-height: 13.44px;">basically&nbsp;</span>asking is:&nbsp;<div><br></div><div>Is this something that you plan to do, - o<span style="line-height: 1.4;">r is it something that you don't want to do?</span></div><div><br></div><div>I don't want to implement this myself, if you plan to do this in an upcoming release.</div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Thu, 14 Jan 2016 05:14:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74311&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74311</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : And CXTPListView.And as far as...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74299&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 12 January 2016 at 11:00am<br /><br />And CXTPListView.<div><br></div><div>And as far as I can see the CXTPListView does not have any code for theming what so ever, CTXTPTreeView contains some?<br><div><br></div><div>-cpede</div></div>]]>
   </description>
   <pubDate>Tue, 12 Jan 2016 11:00:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74299&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74299</guid>
  </item> 
  <item>
   <title><![CDATA[v17 (final) Forgot Theme on CXTPTreeCtrl : It seems that you have not implemented...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74298&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74298</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=686">cpede</a><br /><strong>Subject:</strong> 22842<br /><strong>Posted:</strong> 12 January 2016 at 10:21am<br /><br />It seems that you have not implemented the&nbsp;WM_XTP_SETCONTROLTHEME message handler for the CXTPTreeCtrl.<div><br></div><div><span style="line-height: 1.4;">This means, that calling:</span></div><div><div><br></div><div>SendMessageToDescendants(WM_XTP_SETCONTROLTHEME,nTheme);</div><div>RedrawWindow(NULL,NULL,RDW_INVALIDATE|RDW_UPDATENOW|RDW_ERASE|RDW_ALLCHILDREN);</div></div><div><br></div><div>as suggested in<a href="http://forum.codejock.com/forum_posts.asp?TID=22836&amp;PID=74288&amp;title=&#111;ne-theme-for-all-c&#111;ntrols#74288" rel="nofollow">&nbsp;http://forum.codejock.com/forum_posts.asp?TID=22836&amp;PID=74283&amp;title=one-theme-for-all-controls#74283</a>&nbsp;<span style="line-height: 1.4;">to change the theme globally in the app. does not work.</span></div><div><br></div><div>-cpede</div>]]>
   </description>
   <pubDate>Tue, 12 Jan 2016 10:21:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=22842&amp;PID=74298&amp;title=v17-final-forgot-theme-on-cxtptreectrl#74298</guid>
  </item> 
 </channel>
</rss>