<?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 : [SOLVED]PropertySheet theme issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : [SOLVED]PropertySheet theme issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 07 Jun 2026 22:25:00 +0000</pubDate>
  <lastBuildDate>Thu, 26 Aug 2021 11:25:13 +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=24197</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[[SOLVED]PropertySheet theme issue : Thank you Artem, I will give it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78216&amp;title=solvedpropertysheet-theme-issue#78216</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9498">xsensordev</a><br /><strong>Subject:</strong> 24197<br /><strong>Posted:</strong> 26 August 2021 at 11:25am<br /><br />Thank you Artem, I will give it a try.<div><br></div><div>Best regards</div><div>Terry R. @ xsensor.com</div>]]>
   </description>
   <pubDate>Thu, 26 Aug 2021 11:25:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78216&amp;title=solvedpropertysheet-theme-issue#78216</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]PropertySheet theme issue : Hello,See please CCustomizePageGeneral...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78214&amp;title=solvedpropertysheet-theme-issue#78214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9012">agontarenko</a><br /><strong>Subject:</strong> 24197<br /><strong>Posted:</strong> 26 August 2021 at 4:30am<br /><br />Hello,<div><br></div><div>See please CCustomizePageGeneral class in RibbonSample. I think, this class contains same functional what you need. You can to use XAML for controls with black themes in CXTPPropertyPage.<br></div><div><br></div><div><img src="uploads/9012/test.png" height="849" width="1440" border="0" /><br></div><div><br></div><div>Regards</div>Artem Gontarenko]]>
   </description>
   <pubDate>Thu, 26 Aug 2021 04:30:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78214&amp;title=solvedpropertysheet-theme-issue#78214</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]PropertySheet theme issue : Okay I&amp;#039;ve spent several hours...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78210&amp;title=solvedpropertysheet-theme-issue#78210</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9498">xsensordev</a><br /><strong>Subject:</strong> 24197<br /><strong>Posted:</strong> 20 August 2021 at 5:56pm<br /><br />Okay I've spent several hours digging through the maze of cj code and managed to figure out the issue.<div><br></div><div>The CXTPPropertySheet::SetTheme() call after the call to SetNavigator() causes CXTPCommandBars::EnableFrameTheme(TRUE) to be executed later in the call stack.</div><div><br></div><div>The colors for the frame are in fact properly read from the INI dll via a call to <table width="99%"><tr><td><pre class="BBcode">CXTPFrameThemeOffice2013::RefreshMetrics()</pre></td></tr></table>&nbsp;</div><div><br></div><div>However, those colors are then wiped out with calls to XTPGetAccentColor() in CXTPFrameThemeNativeWindows10::RefreshMetrics().</div><div><br>Anyway my fix is to replace that function with the following:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>void CXTPFrameThemeNativeWindows10::RefreshMetrics()</div><div>{</div><div><span style="white-space: pre;">	</span>CXTPFrameThemeOffice2013::RefreshMetrics();</div><div><br></div><div><span style="white-space: pre;">	</span>m_clrShadowColorActive&nbsp; &nbsp;= XTPIniColor(_T("CommandBars.Frame"), _T("ActiveShadowColor"),</div><div><span style="white-space: pre;">										</span>&nbsp; &nbsp;RGB(0, 122, 204));</div><div><span style="white-space: pre;">	</span>m_clrShadowColorInactive = XTPIniColor(_T("CommandBars.Frame"), _T("InactiveShadowColor"),</div><div><span style="white-space: pre;">										</span>&nbsp; &nbsp;RGB(48, 48, 48));</div><div><br></div><div>#if(0) // what is this fluff?</div><div><span style="white-space: pre;">	</span>// frame back color</div><div><span style="white-space: pre;">	</span>m_clrFrameBorderActive.SetStandardValue(XTPGetAccentColor(xtpPaintManagerAccentColor));</div><div><span style="white-space: pre;">	</span>m_clrFrameCaptionActive.SetStandardValue(XTPGetAccentColor(xtpPaintManagerAccentColor));</div><div><br></div><div><span style="white-space: pre;">	</span>// frame caption text</div><div><span style="white-space: pre;">	</span>m_clrFrameCaptionTextActive.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerNormalTextAccentColor));</div><div><span style="white-space: pre;">	</span>m_clrFrameCaptionTextActiveBSMode.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerNormalTextAccentColor));</div><div><br></div><div><span style="white-space: pre;">	</span>// minimize/maximize/restore button text</div><div><span style="white-space: pre;">	</span>m_csFrameCaptionButtonActive.m_clrBackground.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerAccentColor));</div><div><span style="white-space: pre;">	</span>m_csFrameCaptionButtonActive.m_clrFill.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerNormalTextAccentColor));</div><div><br></div><div><span style="white-space: pre;">	</span>// close button text</div><div><span style="white-space: pre;">	</span>m_csFrameCloseButtonActive.m_clrBackground.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerAccentColor));</div><div><span style="white-space: pre;">	</span>m_csFrameCloseButtonActive.m_clrFill.SetStandardValue(</div><div><span style="white-space: pre;">		</span>XTPGetAccentColor(xtpPaintManagerNormalTextAccentColor));</div><div>#endif</div><div>}</div><div></pre></td></tr></table></div></div><div></div>]]>
   </description>
   <pubDate>Fri, 20 Aug 2021 17:56:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78210&amp;title=solvedpropertysheet-theme-issue#78210</guid>
  </item> 
  <item>
   <title><![CDATA[[SOLVED]PropertySheet theme issue : I&amp;#039;ve modified the Samples\Controls\PropertySheet...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78209&amp;title=solvedpropertysheet-theme-issue#78209</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=9498">xsensordev</a><br /><strong>Subject:</strong> 24197<br /><strong>Posted:</strong> 20 August 2021 at 2:46pm<br /><br /><div>I've modified the Samples\Controls\PropertySheet sample that comes with Toolkit Pro 20.0 to test the effect of the Windows 10 dark theme on it.</div><div><br></div><div>If the&nbsp;CXTPPropertySheet::SetTheme function is called BEFORE the&nbsp;CXTPPropertySheet::SetNavigator call, then I get this look:</div><div><br></div><div><img src="uploads/9498/ThemeBeforeNavigator.png" height="370" width="662" border="0" /><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>If the&nbsp;CXTPPropertySheet::SetTheme function is called AFTER the&nbsp;CXTPPropertySheet::SetNavigator call, then I get this look:</div></div><div><br></div><div><img src="uploads/9498/ThemeAfterNavigator.png" height="378" width="678" border="0" /><br></div><div><br></div><div><br></div><div><b>Where's the title bar?</b></div><div><br></div><div><br></div><div>To achieve this effect, I only modified CPropertySheetApp::InitInstance() and&nbsp;CPropertySheetDlg::OnButtonList().</div><div><br></div><div>My changes are <b>BOLDED</b></div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><font face="Courier New, Courier, mono">BOOL CPropertySheetApp::InitInstance()</font></div><div><font face="Courier New, Courier, mono">{</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>AfxEnableControlContainer();</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>// Standard initialization</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>// If you are not using these features and wish to reduce the size</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>//&nbsp; of your final executable, you should remove from the following</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>//&nbsp; the specific initialization routines you do not need.</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">#if _MSC_VER &lt;= 1200 // MFC 6.0 or earlier</font></div><div><font face="Courier New, Courier, mono">#<span style="white-space:pre">	</span>ifdef _AFXDLL</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>Enable3dControls(); // Call this when using MFC in a shared DLL</font></div><div><font face="Courier New, Courier, mono">#<span style="white-space:pre">	</span>else</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>Enable3dControlsStatic(); // Call this when linking to MFC statically</font></div><div><font face="Courier New, Courier, mono">#<span style="white-space:pre">	</span>endif</font></div><div><font face="Courier New, Courier, mono">#endif // MFC 6.0 or earlier</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><b><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>XTPThemeDLL()-&gt;SetHandle(xtpIniWindows10Dark);</font></b></div><div><b><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>XTPPaintManager()-&gt;SetTheme(XTPPaintTheme::xtpThemeNativeWindows10);</font></b></div><div><span style="white-space:pre"><font face="Courier New, Courier, mono">	</font></span></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CPropertySheetDlg dlg;</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>m_pMainWnd<span style="white-space:pre">	</span>= &amp;dlg;</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>int nResponse = (int)dlg.DoModal();</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>if (nResponse == IDOK)</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>{</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">		</span>// TODO: Place code here to handle when the dialog is</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">		</span>//&nbsp; dismissed with OK</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>}</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>else if (nResponse == IDCANCEL)</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>{</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">		</span>// TODO: Place code here to handle when the dialog is</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">		</span>//&nbsp; dismissed with Cancel</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>}</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>// Since the dialog has been closed, return FALSE so that we exit the</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>//&nbsp; application, rather than start the application's message pump.</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>return FALSE;</font></div><div><font face="Courier New, Courier, mono">}</font></div></div><div></pre></td></tr></table></div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><font face="Courier New, Courier, mono">void CPropertySheetDlg::OnButtonList()</font></div><div><font face="Courier New, Courier, mono">{</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CXTPPropertySheet ps(_T("CXTPPropertyPageListNavigator Sample"));</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><div><b><font face="Courier New, Courier, mono"><span style="white-space: pre;">	</span>// The pages do not receive the theme if I call this here.</font></b></div><div><b><font face="Courier New, Courier, mono"><span style="white-space: pre;">	</span>// ps.SetTheme(xtpControlThemeNativeWindows10);</font></b></div><div><font face="Courier New, Courier, mono"><br></font></div></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CXTPPropertyPageListNavigator* pList = new CXTPPropertyPageListNavigator();</font></div><div><b><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>pList-&gt;SetListStyle(xtpListBoxNativeWindows10);</font></b></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.SetNavigator(pList);</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><b><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>// The pages receive the theme, but the titlebar goes blank.</font></b></div><div><b><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.SetTheme(xtpControlThemeNativeWindows10);</font></b></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CTabListPage pageProperties;</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CTabSamplePage pageSample;</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>CTabResizablePage pageSize;</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.AddPage(&amp;pageProperties);</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.AddPage(&amp;pageSample);</font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.AddPage(&amp;pageSize);</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.SetResizable();</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono"><span style="white-space:pre">	</span>ps.DoModal();</font></div><div><font face="Courier New, Courier, mono">}</font></div></div><div></pre></td></tr></table></div><div><br></div><div><br></div><div>If you switch to the theme to&nbsp;xtpIniWindows10Light, its the same bad titlebar effect:</div><div><br></div><div><img src="uploads/9498/ThemeAfterNavigatorLight.png" height="378" width="678" border="0" /><br></div><div><br></div><div><br></div><div>Am I doing something wrong?</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Fri, 20 Aug 2021 14:46:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=24197&amp;PID=78209&amp;title=solvedpropertysheet-theme-issue#78209</guid>
  </item> 
 </channel>
</rss>