<?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 bug of CXTPTabC&#111;ntrol?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : A bug of CXTPTabC&#111;ntrol?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 15:36:30 +0000</pubDate>
  <lastBuildDate>Thu, 21 Jul 2005 23:17:35 +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=2612</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 bug of CXTPTabC&#111;ntrol? : Don&amp;#039;t modify CXTPTabManagerItem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7790&amp;title=a-bug-of-cxtptabcontrol#7790</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2612<br /><strong>Posted:</strong> 21 July 2005 at 11:17pm<br /><br /><P>Don't modify CXTPTabManagerItem in same way. </P><P>CXTPTabControl have no idea do you want destroy or hide child panes if they closed so you must manually Destroy them. (There are a lot of situations when developer don't want to destroy them).</P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 23:17:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7790&amp;title=a-bug-of-cxtptabcontrol#7790</guid>
  </item> 
  <item>
   <title><![CDATA[A bug of CXTPTabC&#111;ntrol? : I reffer to CXTTabCtrl:And find...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7788&amp;title=a-bug-of-cxtptabcontrol#7788</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 2612<br /><strong>Posted:</strong> 21 July 2005 at 7:38pm<br /><br /><P>I reffer to CXTTabCtrl:<BR>And find there is DeleteItem(nItem, BOOL bDestroyWnd);<BR><BR>So the better modification of CXTPTabContorl is the same like CXTTabCtrl?<BR>Use the parameter bDestroyWnd to let user select to destory the window?</P>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 19:38:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7788&amp;title=a-bug-of-cxtptabcontrol#7788</guid>
  </item> 
  <item>
   <title><![CDATA[A bug of CXTPTabC&#111;ntrol? : And could someone tell us why...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7780&amp;title=a-bug-of-cxtptabcontrol#7780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 2612<br /><strong>Posted:</strong> 21 July 2005 at 8:17am<br /><br />And could someone tell us why only the last child send the assert after my modification on CXTPTabManagerItem::~CXTPTabManagerItem()?]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 08:17:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7780&amp;title=a-bug-of-cxtptabcontrol#7780</guid>
  </item> 
  <item>
   <title><![CDATA[A bug of CXTPTabC&#111;ntrol? : I add two editbox to CXTPTabControl!When...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7774&amp;title=a-bug-of-cxtptabcontrol#7774</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=272">zhou_wz</a><br /><strong>Subject:</strong> 2612<br /><strong>Posted:</strong> 21 July 2005 at 7:44am<br /><br /><P>I add two editbox to CXTPTabControl!<BR>When I use DeleteAllItems() to remove all editbox in CXTPTabControl.<BR>There still editbox exist in tabcontrol.</P><P>I check the code and find the reason:<BR>CXTPTabManagerItem does nothing for its m_hWnd in destructor.<BR>That means, all window added to XTPTabControl must be destroyed manually.</P><P>So I add as below<BR>CXTPTabManagerItem::~CXTPTabManagerItem()<BR>{<BR>&nbsp;if(IsWindow(m_hWnd)) <BR>&nbsp;{<BR>&nbsp;&nbsp;DestroyWindow(m_hWnd);<BR>&nbsp;&nbsp;m_hWnd = NULL;<BR>&nbsp;};<BR>}<BR>So that CXTPTabManager::DeleteItem() and DeleteAllItems() would destroy the child window as I need.</P><P>But another problem prompt:<BR>I used a CXTPTabClientWnd<BR>In function UpdateContents()<BR>There is the line:<BR>&nbsp;&nbsp; pFoundItem-&gt;Remove();<BR>When call this, the found CXTPTabManagerItem's window(i.e, childwindow)&nbsp;will be destroyed by&nbsp; CXTPTabManager::DeleteItem();<BR><BR>While&nbsp;another line in UpdateContents() is :<BR>&nbsp;&nbsp; pChildWnd = pChildWnd-&gt;GetWindow(GW_HWNDNEXT);<BR>when the pChildWnd-&gt;m_hWnd is destroyed, this function would be turned into assert failure!<BR><BR>(That is, the last childframe of multidoc app is closing, you will catch the failure)<BR><BR>How can I solve this?<BR></P>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 07:44:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2612&amp;PID=7774&amp;title=a-bug-of-cxtptabcontrol#7774</guid>
  </item> 
 </channel>
</rss>