Print Page | Close Window

XTFlat TabControl Assertion

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=5521
Printed Date: 15 July 2025 at 12:26pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: XTFlat TabControl Assertion
Posted By: babumohan
Subject: XTFlat TabControl Assertion
Date Posted: 15 November 2006 at 2:02am
I am using a CXTFlatTabCtrl to create a flat tab control
I have a class called
class CUserDockWnd :CUEXTPDockWindow

{

  CXTFlatTabCtrl m_objUserFlatCtrl;
  CUserFlexGrid m_objFlexGrid;
 
}
I have another class which is inherited from  CVsflexgridl1 (VS FlexGrid 8.0)

class CUserFlexGrid : public CVsflexgridl1
{

}


CUserDockWnd ::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
    if (CUEXTPDockWindow::OnCreate(lpCreateStruct) == INVALID_VALUE) {
        UESRCLINKTRACE(_T("CUserDockWnd ::OnCreate() Failed\n"));
        return -1;
    }     
    m_objUserFlatCtrl.Create(WS_CHILD | WS_VISIBLE | FTS_XT_HSCROLL | FTS_XT_HASARROWS | FTS_XT_BOTTOM,CRect(0,0,0,0), this, IDC_FLATTAB))
    m_objFlexGrid.Create(NULL,WS_CHILD, Rect, &m_objUserFlatCtrl, IDC_UE_GRID_MSGAREA, NULL, NULL, NULL)
SetChild(&m_objUserFlatCtrlb);

}


On Debug mode I am getting Assertion window like below



Assertion Is coming on the following funtion


int CXTExcelTabCtrl::InsertItem(int nItem, LPCTSTR lpszItem, CWnd* pWndControl)
{
    const int cItems = GetItemCount();
    if (nItem < 0 || nItem > cItems)
        return -1;

    if (pWndControl)
    {
        ASSERT(::IsWindow(pWndControl->m_hWnd));

        // managed view should be a hidden child
        ASSERT((pWndControl->GetStyle() & (WS_VISIBLE | WS_CHILD)) == WS_CHILD);

....
}



-------------
Babs



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net