<?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 : Toggling frame theme is buggy</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Toggling frame theme is buggy]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 00:48:11 +0000</pubDate>
  <lastBuildDate>Sat, 25 Jul 2009 02:43:53 +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=14796</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[Toggling frame theme is buggy : Well, if I started my application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51308&amp;title=toggling-frame-theme-is-buggy#51308</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14796<br /><strong>Posted:</strong> 25 July 2009 at 2:43am<br /><br /><P>Well, if I started my application in a maximized state I do not want to restore it just like that. And if I remove that ShowWindow-call, the frame theme gets screwed in Vista Aero (until I restart my application, of course).</P><DIV></DIV><DIV></DIV>But sure, I can live with a "restoration" once every 313 days&nbsp;:P]]>
   </description>
   <pubDate>Sat, 25 Jul 2009 02:43:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51308&amp;title=toggling-frame-theme-is-buggy#51308</guid>
  </item> 
  <item>
   <title><![CDATA[Toggling frame theme is buggy : Hi,  So &amp;#034;screws another&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51251&amp;title=toggling-frame-theme-is-buggy#51251</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 14796<br /><strong>Posted:</strong> 24 July 2009 at 4:15am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>So "screws another" problem is restoring that you don't like ? Don't think your customers will switch it each day. Guess they can live with restoring frame once in life :)</DIV><DIV>&nbsp;</DIV><DIV>anyway you can check WS_MAXIMIZE style and Maximize it back after you switch it.</DIV>]]>
   </description>
   <pubDate>Fri, 24 Jul 2009 04:15:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51251&amp;title=toggling-frame-theme-is-buggy#51251</guid>
  </item> 
  <item>
   <title><![CDATA[Toggling frame theme is buggy :  XTP 13.1, RibbonSample.  When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51190&amp;title=toggling-frame-theme-is-buggy#51190</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14796<br /><strong>Posted:</strong> 22 July 2009 at 6:21pm<br /><br /><FONT color=#0000ff size=2><FONT color=#0000ff size=2><DIV>XTP 13.1, RibbonSample.</DIV><DIV>&nbsp;</DIV><DIV>When toggling the frame theme, the window is restored. This is very annoying, so I removed the ShowWindow-call below. However, if removed, the behavior is really weird (buggy). I have found that Vista GUI changes the logic somehow. Can you please test this function a little bit and comment?</DIV><DIV>&nbsp;</DIV><DIV>void</FONT></FONT><FONT size=2> CMainFrame::OnFrameTheme()</DIV><P>{</P><P><strong>ShowWindow(SW_NORMAL); // Why?! Removing it solves one thing, but screws another...</strong></P><P>CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)GetCommandBars()-&gt;GetAt(0);</P><P>CXTPWindowRect rc(</FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>this</FONT></FONT><FONT size=2>);</P><P>rc.top += (pRibbonBar-&gt;IsFrameThemeEnabled() ? -1 : +1) * GetSystemMetrics(SM_CYCAPTION);</P><P>MoveWindow(rc);</P><P></P><P>pRibbonBar-&gt;EnableFrameTheme(!pRibbonBar-&gt;IsFrameThemeEnabled());</P><P>}</P></FONT>]]>
   </description>
   <pubDate>Wed, 22 Jul 2009 18:21:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14796&amp;PID=51190&amp;title=toggling-frame-theme-is-buggy#51190</guid>
  </item> 
 </channel>
</rss>