<?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 : MDI children always maximized?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDI children always maximized?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 14:56:10 +0000</pubDate>
  <lastBuildDate>Sat, 03 Mar 2007 02:19:24 +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=6554</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[MDI children always maximized? : After reading https://forum.co...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6554&amp;PID=20860&amp;title=mdi-children-always-maximized#20860</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6554<br /><strong>Posted:</strong> 03 March 2007 at 2:19am<br /><br />After reading <a href="https://forum.codejock.com/forum_posts.asp?TID=226" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=226</A>&nbsp;I found the optimal solution:<DIV>&nbsp;</DIV><DIV>Just like Oleg writes, do this in CMainFrame::OnCreate():</DIV><DIV><FONT color=#040004 size=2>pCommandBars</FONT><FONT size=2>-&gt;</FONT><FONT color=#040004 size=2>GetMenuBar</FONT><FONT size=2>()-&gt;</FONT><FONT color=#040004 size=2>SetFlags</FONT><FONT size=2>(</FONT><FONT color=#040004 size=2>xtpFlagHideMinimizeBox</FONT><FONT size=2> | </FONT><FONT color=#040004 size=2>xtpFlagHideMaximizeBox</FONT><FONT size=2>);</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Then add this in each child frame:</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><DIV><FONT color=#040004 size=2>void CChildFrame::ActivateFrame(int nCmdShow /* = -1 */)<BR>{<BR>&nbsp;&nbsp;&nbsp; nCmdShow = SW_SHOWMAXIMIZED;</FONT></DIV><DIV><FONT color=#040004 size=2>&nbsp;&nbsp;&nbsp; CMDIChildWnd::ActivateFrame(nCmdShow);<BR>}</FONT></DIV><DIV><FONT color=#040004></FONT>&nbsp;</DIV><DIV><FONT color=#040004>Lol... it's always like this. You google like a freak and you find nothing. Then you post the question somewhere, and in the next couple of minutes you stumble upon the solution.</FONT></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Sat, 03 Mar 2007 02:19:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6554&amp;PID=20860&amp;title=mdi-children-always-maximized#20860</guid>
  </item> 
  <item>
   <title><![CDATA[MDI children always maximized? : Hi,  How do I make sure that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6554&amp;PID=20858&amp;title=mdi-children-always-maximized#20858</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 6554<br /><strong>Posted:</strong> 03 March 2007 at 1:26am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>How do I make sure that all MDI children inside a <DIV><FONT color=#040004 size=2>CXTPTabClientWnd </FONT>are <U>always</U> maximized - no matter what?</DIV><DIV>&nbsp;</DIV><DIV>I have tried to override both PreCreateWindow and ActivateFrame:</DIV><DIV>&nbsp;</DIV><DIV>BOOL CChildFrame::PreCreateWindow(CREATESTRUCT&amp; cs)<BR>{<BR>&nbsp;&nbsp;&nbsp; cs.style &amp;= ~(WS_MINIMIZEBOX | WS_MAXIMIZEBOX);</DIV><DIV>&nbsp;&nbsp;&nbsp; if (!CMDIChildWnd::PreCreateWindow(cs))<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return FALSE;</DIV><DIV>&nbsp;&nbsp;&nbsp; return TRUE;<BR>}<BR></DIV><DIV><FONT color=#040004 size=2>void CChildFrame::ActivateFrame(int nCmdShow /* = -1 */)<BR>{<BR>&nbsp;&nbsp;&nbsp; nCmdShow = SW_SHOWMAXIMIZED;</FONT></DIV><DIV><FONT color=#040004 size=2>&nbsp;&nbsp;&nbsp; CMDIChildWnd::ActivateFrame(nCmdShow);<BR>}</FONT></DIV><DIV><FONT color=#040004 size=2></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#040004>This works until the user preses the close button of one of the MDI frames. Then the remaining children are restored!</FONT></FONT></DIV><DIV><FONT size=2><FONT color=#040004></FONT></FONT>&nbsp;</DIV><DIV><FONT size=2><FONT color=#040004>Any ideas? Thanks.</FONT></DIV></DIV></FONT>]]>
   </description>
   <pubDate>Sat, 03 Mar 2007 01:26:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6554&amp;PID=20858&amp;title=mdi-children-always-maximized#20858</guid>
  </item> 
 </channel>
</rss>