<?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 : XTFlat TabControl  Assertion</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : XTFlat TabControl  Assertion]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 11:01:14 +0000</pubDate>
  <lastBuildDate>Wed, 15 Nov 2006 02:02:59 +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=5521</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[XTFlat TabControl  Assertion : I am using a CXTFlatTabCtrl to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=5521&amp;PID=17315&amp;title=xtflat-tabcontrol-assertion#17315</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2451">babumohan</a><br /><strong>Subject:</strong> 5521<br /><strong>Posted:</strong> 15 November 2006 at 2:02am<br /><br />I am using a CXTFlatTabCtrl to create a flat tab control<br>I have a class called<br>class CUserDockWnd :CUEXTPDockWindow <br><br>{<br><br>&nbsp; CXTFlatTabCtrl m_objUserFlatCtrl; <br>&nbsp; CUserFlexGrid m_objFlexGrid;<br>&nbsp; <br>}<br>I have another class which is inherited from&nbsp; CVsflexgridl1 (VS FlexGrid 8.0)<br><br>class CUserFlexGrid : public CVsflexgridl1<br>{<br><br>}<br><br><br>CUserDockWnd ::OnCreate(LPCREATESTRUCT lpCreateStruct)<br>{<br>&nbsp;&nbsp;&nbsp; if (CUEXTPDockWindow::OnCreate(lpCreateStruct) == INVALID_VALUE) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; UESRCLINKTRACE(_T("CUserDockWnd ::OnCreate() Failed\n"));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br>&nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;<br>&nbsp;&nbsp;&nbsp; m_objUserFlatCtrl.Create(WS_CHILD | WS_VISIBLE | FTS_XT_HSCROLL | FTS_XT_HASARROWS | FTS_XT_BOTTOM,CRect(0,0,0,0), this, IDC_FLATTAB)) <br>&nbsp;&nbsp;&nbsp; m_objFlexGrid.Create(NULL,WS_CHILD, Rect, &amp;m_objUserFlatCtrl, IDC_UE_GRID_MSGAREA, NULL, NULL, NULL)<br>SetChild(&amp;m_objUserFlatCtrlb);<br><br>}<br><br><br>On Debug mode I am getting Assertion window like below<br><img src="uploads/20061115_003430_XTFlatTabCtrlAs.JPG" height="224" width="597" border="0"> <br><br><br>Assertion Is coming on the following funtion<br><br><br>int CXTExcelTabCtrl::InsertItem(int nItem, LPCTSTR lpszItem, CWnd* pWndControl)<br>{<br>&nbsp;&nbsp;&nbsp; const int cItems = GetItemCount();<br>&nbsp;&nbsp;&nbsp; if (nItem &lt; 0 || nItem &gt; cItems)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp;&nbsp;&nbsp; if (pWndControl)<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ASSERT(::IsWindow(pWndControl-&gt;m_hWnd));<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // managed view should be a hidden child<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#ff0000"> ASSERT((pWndControl-&gt;GetStyle() &amp; (WS_VISIBLE | WS_CHILD)) == WS_CHILD);</font><br><br>....<br>}<br><br>]]>
   </description>
   <pubDate>Wed, 15 Nov 2006 02:02:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=5521&amp;PID=17315&amp;title=xtflat-tabcontrol-assertion#17315</guid>
  </item> 
 </channel>
</rss>