Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - XTFlat TabControl  Assertion
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

XTFlat TabControl Assertion

 Post Reply Post Reply
Author
Message
babumohan View Drop Down
Newbie
Newbie
Avatar

Joined: 25 October 2006
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote babumohan Quote  Post ReplyReply Direct Link To This Post Topic: XTFlat TabControl Assertion
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.