<?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 : Non-restoreable Ribbon-MDIs...</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Docking Pane : Non-restoreable Ribbon-MDIs...]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 19:28:54 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jul 2008 01:28:34 +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=11266</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[Non-restoreable Ribbon-MDIs... : Hi,  Ribbon MDI sample also...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37809&amp;title=nonrestoreable-ribbonmdis#37809</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 04 July 2008 at 1:28am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Ribbon MDI sample also has it. Can you modify one of sample, reproduce problem and attach here?</DIV>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 01:28:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37809&amp;title=nonrestoreable-ribbonmdis#37809</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Could my problem have something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37801&amp;title=nonrestoreable-ribbonmdis#37801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 04 July 2008 at 12:56am<br /><br />Could my problem have something to do with my <FONT color=#040004 size=2>CXTPTabClientWnd in CMainFrame? I really can't get rid of the "Move" item!</FONT>]]>
   </description>
   <pubDate>Fri, 04 Jul 2008 00:56:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37801&amp;title=nonrestoreable-ribbonmdis#37801</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Hi, just tried with Ribbon MDI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37722&amp;title=nonrestoreable-ribbonmdis#37722</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 02 July 2008 at 10:13am<br /><br />Hi,<DIV>just tried with Ribbon MDI Sampe. Works. </DIV><DIV>Did you try? ;-)</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 10:13:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37722&amp;title=nonrestoreable-ribbonmdis#37722</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Did you try it? ;) &amp;#034;Move&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37719&amp;title=nonrestoreable-ribbonmdis#37719</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 02 July 2008 at 10:06am<br /><br /><P>Did you try it? ;)</P><DIV>"Move" (with text this time) is still there after executing your code, even though all menu items have been removed. How is this possible?!</DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 10:06:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37719&amp;title=nonrestoreable-ribbonmdis#37719</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Hi, I didn&amp;#039;t write &amp;#034;disable&amp;#034;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37691&amp;title=nonrestoreable-ribbonmdis#37691</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 02 July 2008 at 1:10am<br /><br />Hi,<DIV>I didn't write "disable" I wrote "remove" :-)</DIV><DIV>&nbsp;</DIV><DIV>int CChildFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;if (CMDIChildWnd::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;<BR>&nbsp;CMenu* pMenu = GetSystemMenu(FALSE);</DIV><DIV>&nbsp;pMenu-&gt;RemoveMenu(SC_RESTORE, MF_BYCOMMAND);<BR>&nbsp;pMenu-&gt;RemoveMenu(SC_MINIMIZE, MF_BYCOMMAND);<BR>&nbsp;pMenu-&gt;RemoveMenu(SC_MAXIMIZE, MF_BYCOMMAND);<BR>&nbsp;pMenu-&gt;RemoveMenu(SC_MOVE, MF_BYCOMMAND);<BR>&nbsp;pMenu-&gt;RemoveMenu(SC_SIZE, MF_BYCOMMAND);<BR>&nbsp;<BR>&nbsp;return 0;<BR>}<BR></DIV>]]>
   </description>
   <pubDate>Wed, 02 Jul 2008 01:10:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37691&amp;title=nonrestoreable-ribbonmdis#37691</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Please see image in original post!  The...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37682&amp;title=nonrestoreable-ribbonmdis#37682</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 01 July 2008 at 7:32pm<br /><br /><DIV>Please see image in original post!</DIV><DIV>&nbsp;</DIV><DIV>The items are re-enabled by the framework. However, this works:&nbsp;</DIV><DIV><FONT color=#040004 size=2>cs</FONT><FONT size=2>.</FONT><FONT color=#040004 size=2>style</FONT><FONT size=2> &amp;= ~(</FONT><FONT color=#040004 size=2>WS_MAXIMIZEBOX</FONT><FONT size=2> | </FONT><FONT color=#040004 size=2>WS_MINIMIZEBOX</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Though, the "Move" command is still available. I can live with that, but how would you delete the menu alltogether?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Note that <strong>removing WS_SYSMENU yields a menu with an empty menu item</strong> (bug in Toolkit or MFC?) when pressing Alt+'-'. I tried this in a new MFC-MDI-app and got a lockup instead... crazy.</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 01 Jul 2008 19:32:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37682&amp;title=nonrestoreable-ribbonmdis#37682</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : Hi,  Catch WM_SYSCOMMAND + S...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37663&amp;title=nonrestoreable-ribbonmdis#37663</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 01 July 2008 at 1:03pm<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Catch WM_SYSCOMMAND + SC_KEYMENU/SC_MOUSEMENU.</DIV><DIV>&nbsp;</DIV><DIV>Or better remove these commands from SystemMenu. pWnd-&gt;GetSystemMenu()-&gt;etc.</DIV>]]>
   </description>
   <pubDate>Tue, 01 Jul 2008 13:03:18 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37663&amp;title=nonrestoreable-ribbonmdis#37663</guid>
  </item> 
  <item>
   <title><![CDATA[Non-restoreable Ribbon-MDIs... : I want my ribbon-MDIs to always...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37653&amp;title=nonrestoreable-ribbonmdis#37653</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 11266<br /><strong>Posted:</strong> 01 July 2008 at 8:33am<br /><br />I want my ribbon-MDIs to always be maximized. I solved this by overriding <FONT color=#040004 size=2>ActivateFrame() in </FONT>my frame window, setting <FONT color=#040004 size=2>nCmdShow</FONT><FONT size=2> = </FONT><FONT color=#040004 size=2>SW_SHOWMAXIMIZED. Also, I added this in CMainFrame: <DIV></DIV><DIV></DIV><FONT color=#040004 size=2><P>m_MTIClientWnd.ShowWorkspace(FALSE);<BR>pCommandBars-&gt;GetMenuBar()-&gt;SetFlags(xtpFlagHideMinimizeBox | xtpFlagHideMaximizeBox);</P><DIV>I thought my MDIs were safe, but no... <strong>Alt+'-' causes a context menu to appear</strong> with the options "restore", "minimize" and "close". How do I prevent this menu from appearing?</DIV><DIV>&nbsp;</DIV><DIV>Added image (WS_SYSMENU removed):</DIV><DIV><img src="http://forum.codejock.com/uploads/20080701_193021_strange_sysmenu.jpg" border="0"></FONT><FONT size=2></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Tue, 01 Jul 2008 08:33:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11266&amp;PID=37653&amp;title=nonrestoreable-ribbonmdis#37653</guid>
  </item> 
 </channel>
</rss>