<?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 : How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 22 Apr 2026 05:21:34 +0000</pubDate>
  <lastBuildDate>Mon, 28 Nov 2005 06:51:39 +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=3285</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[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : thx!!!!!!!!!!!!!!! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9850&amp;title=how-to-add-close-button-to-cxtptabcontrol#9850</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 28 November 2005 at 6:51am<br /><br /><IMG src="http://forum.codejock.com/smileys/smiley36.gif" border="0">thx!!!!!!!!!!!!!!!]]>
   </description>
   <pubDate>Mon, 28 Nov 2005 06:51:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9850&amp;title=how-to-add-close-button-to-cxtptabcontrol#9850</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : ic.  Problem that you copied...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9847&amp;title=how-to-add-close-button-to-cxtptabcontrol#9847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 28 November 2005 at 2:47am<br /><br /><P>ic. </P><P>Problem that you copied code from our sample that don't&nbsp; check that</P><P>GetSelectedItem() can be NULL because it have no ability to close views.</P><P>&nbsp;</P><P>You must add these checks. </P><P>F.e. </P><P>1. in void CChildFrame::OnUpdateFrameTitle(BOOL bAddToTitle)</P><P>add if (pView <strong>&amp;&amp; pView-&gt;m_wndTabControl.GetSelectedItem()</strong>)</P><P>2. in CTabbedViewView::OnSelectedChanged </P><P>add</P><P>&nbsp;</P><P><strong>&nbsp;if (m_wndTabControl.GetSelectedItem())<BR></strong>&nbsp;{<BR>&nbsp;&nbsp;CView* pView = DYNAMIC_DOWNCAST(CView,  CWnd::FromHandle(m_wndTabControl.GetSelectedItem()-&gt;GetHa ndle()));<BR>&nbsp;&nbsp;ASSERT_KINDOF(CView, pView);</P><P>&nbsp;&nbsp;pFrame-&gt;SetActiveView(pView);<BR>&nbsp;}<BR>&nbsp;<strong>else<BR>&nbsp;{<BR>&nbsp;&nbsp;pFrame-&gt;SetActiveView(this);<BR>&nbsp;}<BR></strong></P>]]>
   </description>
   <pubDate>Mon, 28 Nov 2005 02:47:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9847&amp;title=how-to-add-close-button-to-cxtptabcontrol#9847</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : my sources are including a lot...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9834&amp;title=how-to-add-close-button-to-cxtptabcontrol#9834</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 27 November 2005 at 7:39am<br /><br /><P>my sources are including a lot of chinese characters, I don't know if you can read them normally, and I found this problem exists when I add a line&nbsp;as follows :</P><P>&nbsp;<FONT color=#0000cc>m_wndTabControl.FindNavigateButton(xtpTabNavigateButtonClose )-&gt;SetFlags(xtpTabNavigateButtonAlways);</FONT></P><P><FONT color=#0000cc><FONT color=#000000>in the end of the&nbsp;CTabbedViewView::OnCreate(LPCREATESTRUCT lpCreateStruct) function in TabbedView Examples.</FONT></FONT></P><P><FONT color=#0000cc><FONT color=#333333>shall I write a line as </FONT></FONT></P><P><FONT color=#0000cc><FONT color=#000000>&nbsp;</FONT><FONT color=#0000cc>m_wndTabControl.FindNavigateButton(xtpTabNavigateButtonClose )-&gt;SetFlags(xtpTabNavigateButtonNone);</FONT><BR></FONT></P><P><FONT color=#0000cc><FONT color=#333333>before I close all the tabItems?</FONT></P></FONT>]]>
   </description>
   <pubDate>Sun, 27 Nov 2005 07:39:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9834&amp;title=how-to-add-close-button-to-cxtptabcontrol#9834</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : I need call stack. May be it is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9830&amp;title=how-to-add-close-button-to-cxtptabcontrol#9830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 27 November 2005 at 4:02am<br /><br />I need call stack. May be it is something in your sources. ]]>
   </description>
   <pubDate>Sun, 27 Nov 2005 04:02:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9830&amp;title=how-to-add-close-button-to-cxtptabcontrol#9830</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : sorry, the error occurs at the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9815&amp;title=how-to-add-close-button-to-cxtptabcontrol#9815</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 26 November 2005 at 9:17am<br /><br />sorry, the error occurs at the time I am closing all the tab view in a view.]]>
   </description>
   <pubDate>Sat, 26 Nov 2005 09:17:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9815&amp;title=how-to-add-close-button-to-cxtptabcontrol#9815</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : ,thank you very much,oleg, it...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9814&amp;title=how-to-add-close-button-to-cxtptabcontrol#9814</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 26 November 2005 at 9:15am<br /><br /><P><IMG src="http://forum.codejock.com/smileys/smiley2.gif" border="0">,thank you very much,oleg, it did work,but when application exited, I got a dialog showing:</P><P>Unhandled exception at 0x00856626 (XTP9601Libd.dll) in TabCtrlTest.exe: 0xC0000005: Access violation reading location 0x00000038.</P>]]>
   </description>
   <pubDate>Sat, 26 Nov 2005 09:15:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9814&amp;title=how-to-add-close-button-to-cxtptabcontrol#9814</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : ps.not sure but may be &amp;#034;x...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9805&amp;title=how-to-add-close-button-to-cxtptabcontrol#9805</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 26 November 2005 at 6:32am<br /><br /><P>ps.&nbsp;not sure but may be "xtpTabNavigateButtonClose" in 9.6&nbsp; called as </P><P>XTP_TABMANAGER_BUTTON_CLOSE</P>]]>
   </description>
   <pubDate>Sat, 26 Nov 2005 06:32:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9805&amp;title=how-to-add-close-button-to-cxtptabcontrol#9805</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : try  m_wndTabControl.FindNavi...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9804&amp;title=how-to-add-close-button-to-cxtptabcontrol#9804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 26 November 2005 at 6:31am<br /><br /><P>try</P><P> m_wndTabControl.FindNavigateButton(xtpTabNavigateButtonClose )-&gt;SetFlags(xtpTabNavigateButtonAlways); <BR></P>]]>
   </description>
   <pubDate>Sat, 26 Nov 2005 06:31:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9804&amp;title=how-to-add-close-button-to-cxtptabcontrol#9804</guid>
  </item> 
  <item>
   <title><![CDATA[How to Add Close Butt&#111;n to CXTPTabC&#111;ntrol : I want to devlop an application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9803&amp;title=how-to-add-close-button-to-cxtptabcontrol#9803</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1633">qinzhw</a><br /><strong>Subject:</strong> 3285<br /><strong>Posted:</strong> 26 November 2005 at 12:20am<br /><br /><P>I want to devlop an application like the sample of Samples\Common\TabbedView, the views&nbsp;I want to add to the CXTPTabControl are derived from CHtmlView and CFormView,&nbsp;and I want to add or delete&nbsp;tab view dynamically, so I want to display a 'Close' Button or something else for user to close the active tab view, how can I do ? my XT is 9.6</P><P>thank you very much if you can answer my question</P>]]>
   </description>
   <pubDate>Sat, 26 Nov 2005 00:20:45 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3285&amp;PID=9803&amp;title=how-to-add-close-button-to-cxtptabcontrol#9803</guid>
  </item> 
 </channel>
</rss>