<?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 : MDITabWindow Example and toolbars</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : MDITabWindow Example and toolbars]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 05:28:57 +0000</pubDate>
  <lastBuildDate>Thu, 17 Aug 2006 13:04:38 +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=4761</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[MDITabWindow Example and toolbars : I have it all working great now....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=15015&amp;title=mditabwindow-example-and-toolbars#15015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 17 August 2006 at 1:04pm<br /><br />I have it all working great now. I just have one feature I would like to request and it is the ability for tabs to exits in the ribbon so that I can switch my child windows from there rather than wasting an additional line.<br><br><img src="uploads/20060817_130310_TabsInRibb&#111;n.JPG" height="465" width="546" border="0"><br><br>]]>
   </description>
   <pubDate>Thu, 17 Aug 2006 13:04:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=15015&amp;title=mditabwindow-example-and-toolbars#15015</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars : Hi, View must have id = AFX_IDW_PANE_FIRST....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14958&amp;title=mditabwindow-example-and-toolbars#14958</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 16 August 2006 at 11:34am<br /><br /><DIV>Hi,</DIV><DIV>View must have id = AFX_IDW_PANE_FIRST.</DIV>]]>
   </description>
   <pubDate>Wed, 16 Aug 2006 11:34:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14958&amp;title=mditabwindow-example-and-toolbars#14958</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars :    oleg wrote:Hi, Seems you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14933&amp;title=mditabwindow-example-and-toolbars#14933</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 15 August 2006 at 4:56pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><div>Hi,</div><div>Seems you have to add Frame to View and resize it&nbsp;in OnSize&nbsp;handler.</div></td></tr></table><br><p ="Ms&#111;normal">I did what you subjected. Now the tool bars don’t get destroyedbut I have two problems.<br><br>a) When I drag a toolbar they don’t draw properly.<br>b) The View doesn’t seem to respect/know that there are toolbars so it thinksits client area starts at the very top of the frame.<br><br>I think both problems are related. Here is where I create the new frame/view. Canyou see what I am doing wrong?<o:p></o:p></p><br><table width="99%"><tr><td><pre class="BBcode"><br><font color="#000099">void CMagicalView::OnInitialUpdate( void )<br>{<br>&nbsp;&nbsp;&nbsp; CDocument* pDocument = GetDocument();<br><br>&nbsp;&nbsp;&nbsp; if (!pDocument)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; CString strTitle = pDocument-&gt;GetTitle();<br><br>&nbsp;&nbsp;&nbsp; m_pFrameNew = new CRealFrame2000;<br>&nbsp;&nbsp;&nbsp; CCreateContext context;<br>&nbsp;&nbsp;&nbsp; context.m_pCurrentDoc = pDocument;<br><br>&nbsp;&nbsp;&nbsp; m_pFrameNew-&gt;Create(NULL, NULL, WS_CHILD, CRect(0, 0, 0, 0), this, NULL, 0, &amp;context);<br>&nbsp;&nbsp;&nbsp; m_pFrameNew-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0);<br><br>&nbsp;&nbsp;&nbsp; //<br>&nbsp;&nbsp;&nbsp; // Create the view<br>&nbsp;&nbsp;&nbsp; //<br>&nbsp;&nbsp;&nbsp; CView* pView = new CHelloView;<br>&nbsp;&nbsp;&nbsp; pView-&gt;Create(NULL,NULL, WS_CHILD, CRect(0,0,0,0), m_pFrameNew, 0, &amp;context );<br>&nbsp;&nbsp;&nbsp; pView-&gt;ModifyStyleEx(WS_EX_CLIENTEDGE, 0);<br><br>&nbsp;&nbsp;&nbsp; //<br>&nbsp;&nbsp;&nbsp; // Set the active view<br>&nbsp;&nbsp;&nbsp; //<br>&nbsp;&nbsp;&nbsp; m_pFrameNew-&gt;SetActiveView(pView,FALSE);<br>}<br></font></pre></td></tr></table><br><br>Thanks <br>Tomas<br><br><br>]]>
   </description>
   <pubDate>Tue, 15 Aug 2006 16:56:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14933&amp;title=mditabwindow-example-and-toolbars#14933</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars :     oleg wrote:Hi, Seems you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14876&amp;title=mditabwindow-example-and-toolbars#14876</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 14 August 2006 at 9:31am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><div>Hi,</div><div>Seems you have to add Frame to View and resize it&nbsp;in OnSize&nbsp;handler.</div></td></tr></table><br><br><p>Thanks so much for answering as this is driving me crazy.<br>You mean to add a child frame to the view of the Helloworld for instance?<br>How I would go about doing that? Because I want to still have my doc/Frame/Viewstill work as normal.<br><br>Sorry I am a bit confused...<br>Tomas<o:p></o:p></p><p><span style="font-size: 10pt; font-family: Arial;"><o:p><br></o:p></span></p>]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 09:31:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14876&amp;title=mditabwindow-example-and-toolbars#14876</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars : Hi, Seems you have to add Frame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14854&amp;title=mditabwindow-example-and-toolbars#14854</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 14 August 2006 at 8:54am<br /><br /><DIV>Hi,</DIV><DIV>Seems you have to add Frame to View and resize it&nbsp;in OnSize&nbsp;handler.</DIV>]]>
   </description>
   <pubDate>Mon, 14 Aug 2006 08:54:31 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14854&amp;title=mditabwindow-example-and-toolbars#14854</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars :   I realize that what I need...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14805&amp;title=mditabwindow-example-and-toolbars#14805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 10 August 2006 at 11:17am<br /><br /><p ="Ms&#111;normal">I realize that what I need to do is to convert theCMDIChildWndEx from dockable to undockable such the toolbars and such wont getdestroy. I belief this is how the example should have work in the first place. Anyhelp about how should I go about doing this? <img src="http://forum.codejock.com/smileys/smiley5.gif" border="0" align="absmiddle"><br></p><p ="Ms&#111;normal"><br><o:p></o:p></p>]]>
   </description>
   <pubDate>Thu, 10 Aug 2006 11:17:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14805&amp;title=mditabwindow-example-and-toolbars#14805</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars :   I have been trying to figure...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14792&amp;title=mditabwindow-example-and-toolbars#14792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 09 August 2006 at 2:07pm<br /><br /><p ="Ms&#111;normal">I have been trying to figure out what should I do, I amfrozen. I don’t want to destroy the controls and recreate them since that may changetheir states. <br><br>I think the thing to do will be having a second frame inside the other framesbut I wasn’t successful at making that happen. <br><br><img src="http://forum.codejock.com/smileys/smiley19.gif" border="0" align="absmiddle">&nbsp;ANY HELP WILL BE GREATLY APRECIATED. <br><br>Tomas<span style="font-size: 10pt; font-family: Arial;"><o:p></o:p></span></p>]]>
   </description>
   <pubDate>Wed, 09 Aug 2006 14:07:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14792&amp;title=mditabwindow-example-and-toolbars#14792</guid>
  </item> 
  <item>
   <title><![CDATA[MDITabWindow Example and toolbars : I was looking at the MDITabWindow...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14763&amp;title=mditabwindow-example-and-toolbars#14763</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2190">Tomas</a><br /><strong>Subject:</strong> 4761<br /><strong>Posted:</strong> 08 August 2006 at 2:12pm<br /><br /><span style="font-size: 10pt; font-family: Arial;"></span><br>I was looking at the MDITabWindow example that you guys have. I really like thebehavior of what you can do with the windows, brilliant in my opinion. But formy case it raises a big problem which I am unsure how to answer.<br><p ="Ms&#111;normal"><br>All my child windows have their own custom ribbon toolbar, etc. But these thingsget created in the frame window OnCreate function. The example however have twokinds of frames that gets created depending of the state of the window (the MDIchild window frame and the dockable window frame.) I really think it will be abad idea to duplicate the code found on the OnCreate function for both cases. <o:p></o:p></p><p ="Ms&#111;normal"><o:p>&nbsp;</o:p><br>Currently the dockable frame parent is a (<span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">CXTPFrameWnd)</span><span style="font-size: 10pt; color: black;"> </span><span style="color: black;">and the MDI child windowparent is a (</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;; color: black;">CXTPFrameWndBase</span><span style="font-size: 10pt; font-family: &quot;Courier New&quot;;">&lt;<span style="color: black;">CMDIChildWnd</span>&gt;</span><span style="color: black;">) (I updated the hirarchy of both classes toallow the ribbon bar). Is there a way to keep the same behavier but use onlyone kind of frame? If not, what solution would you recommend to improve mysituation?<o:p></o:p></span></p><p ="Ms&#111;normal"><span style="color: black;"><o:p>&nbsp;</o:p><br>Thanks,<br>Tomas<o:p></o:p></span></p><p ="Ms&#111;normal"><o:p>&nbsp;</o:p></p><p ="Ms&#111;normal"><o:p><br></o:p></p>]]>
   </description>
   <pubDate>Tue, 08 Aug 2006 14:12:22 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4761&amp;PID=14763&amp;title=mditabwindow-example-and-toolbars#14763</guid>
  </item> 
 </channel>
</rss>