<?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 : I want to change CXTPPropertyPageControlNavigator</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Controls : I want to change CXTPPropertyPageControlNavigator]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 04:44:34 +0000</pubDate>
  <lastBuildDate>Thu, 13 Apr 2017 02:45:06 +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=23317</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[I want to change CXTPPropertyPageControlNavigator : Hello Netman2,I can advise to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23317&amp;PID=75723&amp;title=i-want-to-change-cxtppropertypagecontrolnavigator#75723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23317<br /><strong>Posted:</strong> 13 April 2017 at 2:45am<br /><br />Hello Netman2,<br><br>I can advise to using CXTPWinThemeWrapper for setting expore style. I have modyfied our sample&nbsp;<br>Samples\Controls\PropertySheet\PropertySheetDlg.cpp<br><table width="99%"><tr><td><pre class="BBcode">class CCategoriesTreeNavigator : public CXTPPropertyPageTreeNavigator<div>{</div><div>public:</div><div>&nbsp; &nbsp; CCategoriesTreeNavigator()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; : CXTPPropertyPageTreeNavigator(TVS_SHOWSELALWAYS | TVS_HASBUTTONS <b><font color="#00cc00">/*| TVS_HASLINES*/</font></b> | TVS_LINESATROOT)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; BOOL CreateTree()</div><div>&nbsp; &nbsp; {</div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; if (XTPSystemVersion()-&gt;IsWinVistaOrGreater())</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; {</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPWinThemeWrapper().SetWindowTheme(GetSafeHwnd(), L"EXPLORER", NULL); // enable</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //CXTPWinThemeWrapper().SetWindowTheme(GetSafeHwnd(), L"", NULL); &nbsp; &nbsp;// disable</font></b></div><div><b><font color="#00cc00">&nbsp; &nbsp; &nbsp; &nbsp; }</font></b></div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; ASSERT(m_pSheet-&gt;GetPageCount() == 2);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (m_pSheet-&gt;GetPageCount() != 2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return FALSE;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; HTREEITEM hItemGeneral = InsertItem(_T("General"));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; HTREEITEM hItemOptions = InsertItem(_T("Options"));</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for (int i = 0; i &lt; m_pSheet-&gt;GetPageCount(); i++)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPPropertyPage* pPage = m_pSheet-&gt;GetPage(i);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CString strCaption = pPage-&gt;GetCaption();</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; HTREEITEM hItem = InsertItem(strCaption, -1, -1, i == 0 ? hItemGeneral : hItemOptions);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SetItemData(hItem, (DWORD_PTR)pPage);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; pPage-&gt;m_dwData = (DWORD_PTR)hItem;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; return TRUE;</div><div>&nbsp; &nbsp; }</div>};</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed]]>
   </description>
   <pubDate>Thu, 13 Apr 2017 02:45:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23317&amp;PID=75723&amp;title=i-want-to-change-cxtppropertypagecontrolnavigator#75723</guid>
  </item> 
  <item>
   <title><![CDATA[I want to change CXTPPropertyPageControlNavigator : I want to use explorer theme in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23317&amp;PID=75722&amp;title=i-want-to-change-cxtppropertypagecontrolnavigator#75722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9027">netman2</a><br /><strong>Subject:</strong> 23317<br /><strong>Posted:</strong> 12 April 2017 at 9:00pm<br /><br />I want to use explorer theme in CXTPPropertyPageTreeNavigator.<div><br></div><div>It's derived from CTreeCtrl.</div><div><br></div><div>And of course CTreeCtrl doesn't have SetExplorerTheme function.</div><div><br></div><div>So, I want to change CTreeCtrl -&gt; CXTPTreeCtrl or Just add theme.</div><div><br></div><div>Is there way to add an explorer theme in&nbsp;CXTPPropertyPageTreeNavigator ?</div><div><br></div><div>Please Help me.</div><div><br></div><div>Thanks.</div>]]>
   </description>
   <pubDate>Wed, 12 Apr 2017 21:00:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23317&amp;PID=75722&amp;title=i-want-to-change-cxtppropertypagecontrolnavigator#75722</guid>
  </item> 
 </channel>
</rss>