<?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 : Switching MDI menus in full screen mode</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Switching MDI menus in full screen mode]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 00:44:36 +0000</pubDate>
  <lastBuildDate>Mon, 10 Mar 2008 06:48:09 +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=9784</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[Switching MDI menus in full screen mode : Hi; If someone is interrested...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9784&amp;PID=32076&amp;title=switching-mdi-menus-in-full-screen-mode#32076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9784<br /><strong>Posted:</strong> 10 March 2008 at 6:48am<br /><br />Hi;<DIV>If someone is interrested in this:</DIV><DIV>&nbsp;</DIV><DIV>Calling OnUpdateFrameMenu(0) after closing full screen mode did it. </DIV><DIV>&nbsp;</DIV><DIV>Thanks to Oleg!</DIV>]]>
   </description>
   <pubDate>Mon, 10 Mar 2008 06:48:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9784&amp;PID=32076&amp;title=switching-mdi-menus-in-full-screen-mode#32076</guid>
  </item> 
  <item>
   <title><![CDATA[Switching MDI menus in full screen mode : Hi;  I&amp;#039;ve implemented a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=9784&amp;PID=31874&amp;title=switching-mdi-menus-in-full-screen-mode#31874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 9784<br /><strong>Posted:</strong> 04 March 2008 at 5:08am<br /><br />Hi; <DIV>I've implemented a fullscreen mode into my MDI application that has different document types. Each document type has its own menu resource.</DIV><DIV>I'm also using CTXPTabClientWnd as the workspace for my child windows.</DIV><DIV>&nbsp;</DIV><DIV>Now, when I'm in fullscreen mode and tab to another document type, then switch back from fullscreen mode, the menu does not change to the currently selected documents type. It's still the menu that was active when I entered fullscreen mode.</DIV><DIV>&nbsp;</DIV><DIV>To switch between normal and fullscreen mode I use code found in the VisualStudion GUI example of the toollkit:</DIV><DIV>&nbsp;</DIV><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><DIV><FONT color=#0000ff size=2><FONT face="Courier New, Courier, mono"><DIV>void CMainFrame::OnShowFullScreen()</DIV><DIV>{</DIV><DIV>bFullScreen_ ^= 1;</DIV><DIV>CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));</DIV><DIV>CXTPPropExchangeXMLNode* pxLayoutSave = DYNAMIC_DOWNCAST(CXTPPropExchangeXMLNode, px.GetSection(_T("FullScreenLayout")));</DIV><DIV>ASSERT(pxLayoutSave);</DIV><DIV>// Save current layout</DIV><DIV>if (pxLayoutSave != 0)</DIV><DIV>{ </DIV><DIV>ExchangeLayout(pxLayoutSave, FALSE);</DIV><DIV>}</DIV><DIV>// If Full screen layout exists</DIV><DIV>if (pFullScreenLayout_.get() &amp;&amp; pFullScreenLayout_-&gt;IsSectionExists(_T("CommandBars")))</DIV><DIV>{</DIV><DIV>// Set it</DIV><DIV>pFullScreenLayout_-&gt;SetLoading(TRUE);</DIV><DIV>ExchangeLayout(pFullScreenLayout_.get(), FALSE);</DIV><DIV>}</DIV><DIV>// Else create new fullscreen layout. Hide all toolbars and DockingPanes.</DIV><DIV>else</DIV><DIV>{ </DIV><DIV>for (int i = 0; i &lt; GetCommandBars()-&gt;GetCount(); i++)</DIV><DIV>{</DIV><DIV>CXTPToolBar* pToolBar = GetCommandBars()-&gt;GetAt(i);</DIV><DIV>pToolBar-&gt;SetVisible(/*(pToolBar-&gt;GetType() == xtpBarTypeMenuBar) || */(pToolBar-&gt;GetBarID() == IDR_TOOLBAR_FULLSCREEN));</DIV><DIV>if (pToolBar-&gt;IsVisible()) {</DIV><DIV>CXTPEmptyRect rect;</DIV><DIV>GetCommandBars()-&gt;DockCommandBar(pToolBar, rect, GetCommandBars()-&gt;GetDockBar(xtpBarTop));</DIV><DIV>}</DIV><DIV>}</DIV><DIV>_paneManager.CloseAll();</DIV><DIV>}</DIV><DIV>// Save old layout</DIV><DIV>pFullScreenLayout_.reset(pxLayoutSave);</DIV><DIV>if (bFullScreen_)</DIV><DIV>{</DIV><DIV>GetWindowRect(&amp;rcMainFrame_);</DIV><DIV>ModifyStyle(WS_CAPTION|WS_THICKFRAME, 0);</DIV><DIV>// Now resize the main window</DIV><DIV>CRect rcScreen = XTPMultiMonitor()-&gt;GetScreenArea(this);</DIV><DIV>int cxBorder = ::GetSystemMetrics(SM_CXBORDER);</DIV><DIV>int cyBorder = ::GetSystemMetrics(SM_CYBORDER);</DIV><DIV>SetWindowPos(NULL, rcScreen.left - cxBorder, rcScreen.top - cyBorder, </DIV><DIV>rcScreen.Width() + cxBorder * 2, rcScreen.Height() + cyBorder * 2, SWP_NOZORDER);</DIV><DIV>m_wndStatusBar.ShowWindow(SW_HIDE);</DIV><DIV>} </DIV><DIV>else</DIV><DIV>{</DIV><DIV>ModifyStyle(0, WS_CAPTION|WS_THICKFRAME);</DIV><DIV>MoveWindow(&amp;rcMainFrame_);</DIV><DIV>m_wndStatusBar.ShowWindow(SW_SHOW);</DIV><DIV>}</DIV><DIV>RecalcLayout(TRUE);</DIV><DIV>}</DIV></FONT></FONT></DIV></BLOCKQUOTE><DIV>&nbsp;</DIV><DIV>I know that it has something to do with storing/restoring the current layout, but I don't know how to react when the user tabs between documents. </DIV><DIV>Does anyone know what I have to do in this case?</DIV>]]>
   </description>
   <pubDate>Tue, 04 Mar 2008 05:08:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=9784&amp;PID=31874&amp;title=switching-mdi-menus-in-full-screen-mode#31874</guid>
  </item> 
 </channel>
</rss>