<?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 : A Question About the Tab Control</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : A Question About the Tab Control]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 15:53:29 +0000</pubDate>
  <lastBuildDate>Thu, 31 Jul 2008 01:44:09 +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=11653</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[A Question About the Tab Control : Hi,  You do something wrong....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39204&amp;title=a-question-about-the-tab-control#39204</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11653<br /><strong>Posted:</strong> 31 July 2008 at 1:44am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>You do something wrong. Try to reproduce it with our Samples\ToolkitPro\TabbedView sample &nbsp; and send modifications.</DIV>]]>
   </description>
   <pubDate>Thu, 31 Jul 2008 01:44:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39204&amp;title=a-question-about-the-tab-control#39204</guid>
  </item> 
  <item>
   <title><![CDATA[A Question About the Tab Control : HI: Thank you for your help,but...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39199&amp;title=a-question-about-the-tab-control#39199</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2846">fireflame</a><br /><strong>Subject:</strong> 11653<br /><strong>Posted:</strong> 30 July 2008 at 10:22pm<br /><br />HI:<DIV>Thank you for your help,but when i run it under release mode, FromHandle(pItem-&gt;GetHandle()); returns a point to another view but not the view i want<img src="https://forum.codejock.com/smileys/smiley5.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 30 Jul 2008 22:22:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39199&amp;title=a-question-about-the-tab-control#39199</guid>
  </item> 
  <item>
   <title><![CDATA[A Question About the Tab Control : Hi, Instead GetData call CWnd...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39154&amp;title=a-question-about-the-tab-control#39154</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11653<br /><strong>Posted:</strong> 30 July 2008 at 7:41am<br /><br />Hi,<DIV>Instead GetData call CWnd::FromHandle(pItem-&gt;GetHandle());</DIV>]]>
   </description>
   <pubDate>Wed, 30 Jul 2008 07:41:03 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39154&amp;title=a-question-about-the-tab-control#39154</guid>
  </item> 
  <item>
   <title><![CDATA[A Question About the Tab Control : I using a CXTPTabControl to show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39143&amp;title=a-question-about-the-tab-control#39143</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2846">fireflame</a><br /><strong>Subject:</strong> 11653<br /><strong>Posted:</strong> 30 July 2008 at 4:05am<br /><br />I using a CXTPTabControl to show some views in a project,the code is following:<DIV>CWnd* CMonitorManTabCtrl::AddView(CRuntimeClass* pViewClass, LPCTSTR lpszTitle, int nIcon,CRect rect)<BR>{<BR>&nbsp;&nbsp; CCreateContext contextT;<BR>&nbsp;&nbsp; contextT.m_pNewViewClass&nbsp;&nbsp; = pViewClass;</DIV><DIV>&nbsp;&nbsp; CWnd* pWnd;<BR>&nbsp;&nbsp; TRY<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pWnd = (CWnd*)pViewClass-&gt;CreateObject();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pWnd == NULL)<BR>&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp; AfxThrowMemoryException();<BR>&nbsp;&nbsp; }<BR>&nbsp;}<BR>&nbsp;CATCH_ALL(e)<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0( "Out of memory creating a view.\n" );<BR>&nbsp;&nbsp;return FALSE;<BR>&nbsp;}<BR>&nbsp;END_CATCH_ALL</DIV><DIV>&nbsp;DWORD dwStyle = AFX_WS_DEFAULT_VIEW;<BR>&nbsp;dwStyle &amp;= ~WS_BORDER;</DIV><DIV>&nbsp;int nTab = GetItemCount();<BR>&nbsp;if (!pWnd-&gt;Create(NULL, NULL, dwStyle,<BR>&nbsp;&nbsp;rect, this, (AFX_IDW_PANE_FIRST + nTab), &amp;contextT))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0( "Warning: couldn't create client tab for view.\n" );<BR>&nbsp;&nbsp;return NULL;<BR>&nbsp;}<BR>&nbsp;this-&gt;SetSelectedItem(this-&gt;InsertItem(nTab, lpszTitle, </DIV><DIV>&nbsp;pWnd-&gt;GetSafeHwnd(), nIcon));</DIV><DIV>&nbsp;pWnd-&gt;SetOwner(this);</DIV><DIV>&nbsp;return pWnd;<BR>}</DIV><DIV>&nbsp;</DIV><DIV>when i clicked the close button, how can i also destroy the view inside?</DIV><DIV>the code is following</DIV><DIV>void CMonitorManTabCtrl::OnNavigateButtonClick(CXTPTabManagerNavigateButton* pButton)<BR>{</DIV><DIV>CWnd *pWnd = NULL;<BR>&nbsp;if (pButton-&gt;GetID() == xtpTabNavigateButtonClose)<BR>&nbsp;{<BR>&nbsp;&nbsp;CXTPTabManagerItem *pItem = this-&gt;GetSelectedItem();<BR>&nbsp;&nbsp;pWnd = (CWnd*)(LPVOID)pItem-&gt;GetData();<BR>&nbsp;}</DIV><DIV>&nbsp;if (pWnd)<BR>&nbsp;{<BR>&nbsp;&nbsp;pWnd-&gt;DestroyWindow();<BR>&nbsp;}<BR>}</DIV><DIV>&nbsp;</DIV><DIV>here pWnd is a point to NULL,how can i get the RUNTIME_CLASS view?</DIV>]]>
   </description>
   <pubDate>Wed, 30 Jul 2008 04:05:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11653&amp;PID=39143&amp;title=a-question-about-the-tab-control#39143</guid>
  </item> 
 </channel>
</rss>