<?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 : Tab trouble</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Tab trouble]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 15:27:51 +0000</pubDate>
  <lastBuildDate>Wed, 08 Nov 2006 00:29:37 +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=5454</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[Tab trouble :  1. Doesn&amp;#039;t look like good...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5454&amp;PID=17117&amp;title=tab-trouble#17117</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 5454<br /><strong>Posted:</strong> 08 November 2006 at 12:29am<br /><br /><DIV>&nbsp;</DIV><DIV>1. Doesn't look like good code&nbsp;:(</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>2. TabClient sends WM_XTP_GETWINDOWTEXT to CChildFrame, catch it and return (LPCTSTR) to caption you need.</DIV><DIV>&nbsp;</DIV><DIV>3. you have to close not view but its CChIldFrame parent - pView-&gt;GetParent()-&gt;CloseWindow();</DIV>]]>
   </description>
   <pubDate>Wed, 08 Nov 2006 00:29:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5454&amp;PID=17117&amp;title=tab-trouble#17117</guid>
  </item> 
  <item>
   <title><![CDATA[Tab trouble : I need help!. I am trying to do...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5454&amp;PID=17108&amp;title=tab-trouble#17108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2461">ContactGT</a><br /><strong>Subject:</strong> 5454<br /><strong>Posted:</strong> 07 November 2006 at 12:22pm<br /><br /><DIV>I need help!. I am trying to do something, which I consider to be simple, but I'm really struggling to get it to work. <DIV>&nbsp;</DIV><DIV>I have an MDI application, working with just 1 document (for now).</DIV><DIV>I have several different classes of CView - FlamingoGanttView and FlamingoNavigatorView for example.</DIV><DIV>I have menu items to let the user add and remove these views.</DIV><DIV>Each view should appear only once<SPAN =502252017-07112006>.</SPAN></DIV><DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV><DIV>At the moment, my MainFrame derives from CXTPMDIFrameWnd and contains a CXTPTabClientWnd m_MTIClientWnd and I keep a pointer to each view once it is create. This allows me to tick the menu item to say the view is on the screen.</DIV><DIV>&nbsp;</DIV><DIV>At the moment, I have this code in the method behind the menu item.</DIV><DIV>&nbsp;</DIV><DIV>void CMainFrame::OnViewsGanttChart()<BR>{<BR>&nbsp;if (m_viewGantt != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;// Don't know how to close the window yet.<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;CMDIChildWnd* pActiveChild = MDIGetActive();<BR>&nbsp;&nbsp;CDocument* pDocument= pActiveChild-&gt;GetActiveDocument()) == NULL)</DIV><DIV>&nbsp;&nbsp;CMultiDocTemplate docTemplate(IDR_GanttTYPE,<BR>&nbsp;&nbsp;RUNTIME_CLASS(CFlamingoDoc),<BR>&nbsp;&nbsp;RUNTIME_CLASS(CChildFrame), // custom MDI child frame<BR>&nbsp;&nbsp;RUNTIME_CLASS(FlamingoGanttView));</DIV><DIV>&nbsp;&nbsp;CChildFrame *newChild = (CChildFrame*) docTemplate.CreateNewFrame(pDocument, NULL);<BR>&nbsp;&nbsp;docTemplate.InitialUpdateFrame(newChild, pDocument);</DIV><DIV>&nbsp;&nbsp;CCreateContext context;<BR>&nbsp;&nbsp;context.m_pCurrentFrame = newChild;<BR>&nbsp;&nbsp;context.m_pCurrentDoc = pDocument;<BR>&nbsp;&nbsp;context.m_pNewViewClass = RUNTIME_CLASS(FlamingoGanttView);<BR>&nbsp;&nbsp;context.m_pNewDocTemplate = &amp;docTemplate;</DIV><DIV>&nbsp;&nbsp;m_viewGantt = (FlamingoGanttView*) CreateView(&amp;context, IDGT_VIEW_GANTT);</DIV><DIV>&nbsp;&nbsp;SetActiveView(m_viewGantt, TRUE);<BR>&nbsp;&nbsp;m_viewGantt-&gt;ShowWindow(SW_SHOW);<BR>&nbsp;&nbsp;m_viewGantt-&gt;SetWindowText("Gantt Chart");<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>My first question is, does this sound like the best way to implement a tabbed main area?</DIV><DIV>Second question&nbsp;<SPAN =502252017-07112006>- how do I change the name of the tab - they are both getting called "Navigator1". I would like "Navigator" and "Gantt Chart" at the tab names.<BR></SPAN><SPAN =502252017-07112006>Third </SPAN>question - how do I close these views and tabs? I have a pointer to the view, but CloseWindow and DestroyWindow don't do anything.</DIV></DIV>]]>
   </description>
   <pubDate>Tue, 07 Nov 2006 12:22:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5454&amp;PID=17108&amp;title=tab-trouble#17108</guid>
  </item> 
 </channel>
</rss>