<?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 : Office 2013 Theme - Shadow</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Office 2013 Theme - Shadow]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 10:44:31 +0000</pubDate>
  <lastBuildDate>Tue, 06 Dec 2016 05:26:16 +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=23220</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[Office 2013 Theme - Shadow : ok, glad to hear this ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75419&amp;title=office-2013-theme-shadow#75419</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23220<br /><strong>Posted:</strong> 06 December 2016 at 5:26am<br /><br /><img src="http://forum.codejock.com/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" />&nbsp;ok, glad to hear this]]>
   </description>
   <pubDate>Tue, 06 Dec 2016 05:26:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75419&amp;title=office-2013-theme-shadow#75419</guid>
  </item> 
  <item>
   <title><![CDATA[Office 2013 Theme - Shadow : Hello Oleksandr,Thank you very...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75418&amp;title=office-2013-theme-shadow#75418</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=19">mihey</a><br /><strong>Subject:</strong> 23220<br /><strong>Posted:</strong> 06 December 2016 at 3:12am<br /><br />Hello Oleksandr,<br /><br />Thank you very much for the explanation. <br /><br />Your suggestion has helped. After I've added EnableFrameTheme(FALSE) in <br />RibbonSample I could turn shadows there on. <br /><br />In case of my application the problem was also in the moment at which I tried to enable the theme. At this moment the MainWindow was hidden and Ribbon has not been initialized properly. After I moved the Theme initialization to the end of my InitInstance it worked as a should.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="http://forum.codejock.com/smileys/smiley20.gif" border="0" align="middle" /> <br /><br />Best regards, <br />Mikhail]]>
   </description>
   <pubDate>Tue, 06 Dec 2016 03:12:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75418&amp;title=office-2013-theme-shadow#75418</guid>
  </item> 
  <item>
   <title><![CDATA[Office 2013 Theme - Shadow : HelloMikhail,FrameShadows are...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75413&amp;title=office-2013-theme-shadow#75413</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=8730">olebed</a><br /><strong>Subject:</strong> 23220<br /><strong>Posted:</strong> 05 December 2016 at 9:17am<br /><br />Hello&nbsp;<span style="line-height: 16.8px; : rgb248, 248, 252;">Mikhail,<br><br>FrameShadows are turned on with calling&nbsp;</span>CXTPCommandBarsFrameHook::EnableFrameTheme(). Differences between these two samples in methods CMainFrame::SetCommandBarsTheme().&nbsp;<br><div><br>&gt;<span ="apple-tab-span"="" style="white-space:pre">	</span>ToolkitPro1800UD.dll!CXTPCommandBarsFrameHook::EnableShadow() Line 1387<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>ToolkitPro1800UD.dll!CXTPCommandBarsFrameHook::EnableFrameTheme(CXTPCommandBars * pCommandBars) Line 383<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>ToolkitPro1800UD.dll!CXTPCommandBarsFrameHook::EnableOffice2007Frame(CXTPCommandBars * pCommandBars) Line 404<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>ToolkitPro1800UD.dll!CXTPCommandBars::EnableFrameTheme(int bEnable) Line 2341<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>ToolkitPro1800UD.dll!CXTPRibbonBar::EnableFrameTheme(int bEnable) Line 427<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div>&nbsp;<span ="apple-tab-span"="" style="white-space:pre">	</span>RibbonControls.exe!CMainFrame::SetCommandBarsTheme(XTPPaintTheme paintTheme, HINSTANCE__ * hModule, const wchar_t * lpszINI) Line 1049<span ="apple-tab-span"="" style="white-space:pre">	</span>C++</div><div><br>Old themes don't have FrameShadows and &nbsp;pFramePaintManager-&gt;CreateShadow(GetSite()); &nbsp;in method&nbsp;CXTPCommandBarsFrameHook::EnableShadow() &nbsp;returns NULL. So default Ribbon has theme office2007 without frameShadow. But on setting Office2013 theme and enabling "FrameTheme" option again in&nbsp;CXTPCommandBarsFrameHook::EnableFrameTheme() &nbsp;method exits on begining <table width="99%"><tr><td><pre class="BBcode">void CXTPCommandBarsFrameHook::EnableFrameTheme(CXTPCommandBars* pCommandBars)</div><div>{</div><div>&nbsp; &nbsp; BOOL bEnabled = pCommandBars != NULL;</div><div>&nbsp; &nbsp; if (m_bThemeFrameEnabled == bEnabled)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <b><font color="#0066ff">return;<br></font></b><span style="line-height: 16.8px;">&nbsp; &nbsp; ....</span><div>&nbsp; &nbsp; if (pCommandBars)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ....</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <font color="#00cc00"><b>EnableShadow</b></font><b><font color="#00cc00">();</font></b></div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; DisableFrameTheme();</div><div>&nbsp; &nbsp; }<br></div><span style="line-height: 16.8px;">}</span></div><div></pre></td></tr></table><br>That is why to enable shadows we need to disable "FrameTheme" and then enable again as in&nbsp;<span style="line-height: 16.8px;">CMainFrame::SetCommandBarsTheme() method of&nbsp;</span>RibbonControls sample.<br><table width="99%"><tr><td><pre class="BBcode">void CMainFrame::SetCommandBarsTheme(XTPPaintTheme paintTheme, HMODULE hModule/*=NULL*/, LPCTSTR lpszINI/*=NULL*/)</div><div>{</div><div>&nbsp; &nbsp; CXTPCommandBarsFrameHook::m_bAllowDwm = !(CXTPWinDwmWrapper().IsCompositionEnabled() &amp;&amp; (xtpThemeOffice2013 == paintTheme || xtpThemeOffice2007System == paintTheme));</div><div>&nbsp; &nbsp; CXTPRibbonBar *pRibbonBar = DYNAMIC_DOWNCAST(CXTPRibbonBar, GetCommandBars()-&gt;GetMenuBar());</div><div>&nbsp; &nbsp; <b><font color="#00cc00">pRibbonBar-&gt;EnableFrameTheme(FALSE);</font></b></div><div><br></div><div>&nbsp; &nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();</div><div>&nbsp; &nbsp; if (pCommandBars != NULL)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (hModule != NULL &amp;&amp; lpszINI != NULL)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; XTPResourceImages()-&gt;SetHandle(hModule, lpszINI);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPPaintManager::SetTheme(paintTheme);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else if(paintTheme == xtpThemeOfficeXP) // System theme</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CXTPPaintManager::SetTheme(paintTheme);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;<b> <font color="#00cc00">pRibbonBar-&gt;EnableFrameTheme(TRUE);</font></b></div><div>&nbsp; &nbsp; }</div><div>}</pre></td></tr></table><br>In RibbonSample:<table width="99%"><tr><td><pre class="BBcode">void CMainFrame::SetCommandBarsTheme(XTPPaintTheme paintTheme, LPCTSTR lpszINI/*=NULL*/)</div><div>{</div><div>&nbsp; &nbsp; ....</div><div>&nbsp; &nbsp; if (!<font color="#0066ff"><b>m_bOverrideAllowDwm</b></font>)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; m_bAllowDwm = (XTPSystemVersion()-&gt;IsWin10OrGreater() ? FALSE</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; : !(CXTPWinDwmWrapper().IsCompositionEnabled()</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp;&amp; (xtpThemeOffice2013 == paintTheme || xtpThemeVisualStudio2015 == paintTheme)));</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; <font color="#00cc00"><b>pRibbonBar-&gt;EnableFrameTheme(FALSE);</b></font></div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; ....</div><div>&nbsp; &nbsp; &nbsp; &nbsp; CXTPPaintManager::SetTheme(paintTheme);</div><div>&nbsp; &nbsp; ....</div><div>&nbsp; &nbsp;<b> <font color="#00cc00">pRibbonBar-&gt;EnableFrameTheme(m_bEnableFrameTheme);</font></b></div><div>&nbsp; &nbsp; ....</div><div>}</pre></td></tr></table><br>Regards,<br>&nbsp;Oleksandr Lebed</div>]]>
   </description>
   <pubDate>Mon, 05 Dec 2016 09:17:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75413&amp;title=office-2013-theme-shadow#75413</guid>
  </item> 
  <item>
   <title><![CDATA[Office 2013 Theme - Shadow : Hi,comparing two examples - Ribbon.RibbonControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75411&amp;title=office-2013-theme-shadow#75411</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=19">mihey</a><br /><strong>Subject:</strong> 23220<br /><strong>Posted:</strong> 05 December 2016 at 7:45am<br /><br />Hi,<br />comparing two examples - Ribbon.RibbonControls and Ribbon.RibonSample from the new XTP 17.3 MFC, I found out that the first one shows a shadow around the main window and the second one doesn't. <br /><br /><img src="uploads/19/05-12-_2016_13-32-44.png" border="0" /><br /><br />vs<br /><br /><img src="uploads/19/05-12-_2016_13-33-32.png" border="0" /><br /><br />Both are executed in Windows 7 x64 OS.<br /><br />Can anybody say which exactly method is responsible for this? I could not find it yet. My application also does not show the shadow at the moment and I'd like to change it.  <br /><br />Regards,<br />Mikhail.]]>
   </description>
   <pubDate>Mon, 05 Dec 2016 07:45:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=23220&amp;PID=75411&amp;title=office-2013-theme-shadow#75411</guid>
  </item> 
 </channel>
</rss>