<?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 : Change Tab Caption in MDITabWindow Sample</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Change Tab Caption in MDITabWindow Sample]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 13 Jun 2026 03:29:12 +0000</pubDate>
  <lastBuildDate>Thu, 31 Aug 2006 16:21:53 +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=4939</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[Change Tab Caption in MDITabWindow Sample : Hi, Just answered in another...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4939&amp;PID=15386&amp;title=change-tab-caption-in-mditabwindow-sample#15386</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4939<br /><strong>Posted:</strong> 31 August 2006 at 4:21pm<br /><br /><DIV>Hi,</DIV><DIV>Just answered in another thread - <a href="https://forum.codejock.com/forum_posts.asp?TID=4936" target="_blank">https://forum.codejock.com/forum_posts.asp?TID=4936</DIV></A>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 16:21:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4939&amp;PID=15386&amp;title=change-tab-caption-in-mditabwindow-sample#15386</guid>
  </item> 
  <item>
   <title><![CDATA[Change Tab Caption in MDITabWindow Sample : Hello, How to change the caption...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4939&amp;PID=15377&amp;title=change-tab-caption-in-mditabwindow-sample#15377</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2160">hnhd</a><br /><strong>Subject:</strong> 4939<br /><strong>Posted:</strong> 31 August 2006 at 1:03pm<br /><br /><P>Hello,</P><DIV>How to change the caption of a just created tab in MDI App ? I am doing the following but unable to change as m_MTIClientWnd.GetItem returns NULL. Seems that the tab is not yet created. But here if I use the index of an existing tab &amp; after SetCaption I show a MessageBox then the caption is changed till I dismiss the MsgBox. After that the caption reverts back to what is defined in IDR_HELLOTYPE.</DIV><P>Regards</P><P>void CMainFrame::OnFileNewhello() <BR>{</P><P>&nbsp;POSITION curTemplatePos = ::AfxGetApp()-&gt;GetFirstDocTemplatePosition();</P><P>&nbsp;while(curTemplatePos != NULL)<BR>&nbsp;{<BR>&nbsp;&nbsp;CDocTemplate* curTemplate =<BR>&nbsp;&nbsp;&nbsp;AfxGetApp()-&gt;GetNextDocTemplate(curTemplatePos);<BR>&nbsp;&nbsp;CString str;<BR>&nbsp;&nbsp;curTemplate-&gt;GetDocString(str, CDocTemplate::docName);<BR>&nbsp;&nbsp;if(str == _T("Hello"))<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;CDocument *p = curTemplate-&gt;OpenDocumentFile(NULL);<BR>&nbsp;&nbsp;&nbsp;if (p)<BR>&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;CXTPTabManagerItem *pTabItem = m_MTIClientWnd.GetItem(m_MTIClientWnd.GetItemCount());<BR>&nbsp;&nbsp;&nbsp;&nbsp;if (pTabItem)<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pTabItem-&gt;SetCaption(_T("SomeCaption"));<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;}</P><P>&nbsp;&nbsp;&nbsp;return;<BR>&nbsp;&nbsp;}<BR>&nbsp;}<BR>&nbsp;AfxMessageBox(IDS_NOHELLOTEMPLATE);<BR>}<BR></P>]]>
   </description>
   <pubDate>Thu, 31 Aug 2006 13:03:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4939&amp;PID=15377&amp;title=change-tab-caption-in-mditabwindow-sample#15377</guid>
  </item> 
 </channel>
</rss>