how to insert control's in CTabCtrl
hi group,
i have created a CTabCtrl on my dockable window with the following code
int CDocDebug::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CSizingDocBar::OnCreate(lpCreateStruct) == -1)
return -1;
SetSCBStyle(GetSCBStyle() | SCBS_SHOWEDGES | SCBS_SIZECHILD);
///CTabCtrl Creation
CRect rect;
GetClientRect(&rect);
m_imageList.Create(IDB_TREEVIEWBITMAP,16,1,RGB(255,255,255));
m_wndTabCtl.Create(TCS_BOTTOM|TCS_FORCELABELLEFT |WS_CHILD |
WS_VISIBLE |WS_TABSTOP,
rect,this,12345);
m_wndTabCtl.SetImageList(&m_imageList);
DWORD dwExStyle= m_wndTabCtl.GetExtendedStyle();
m_wndTabCtl.SetExtendedStyle(dwExStyle | TCS_EX_FLATSEPARATORS);
dwExStyle= m_wndTabCtl.GetExtendedStyle();
m_wndTabCtl.SetExtendedStyle(dwExStyle & ~TCS_EX_FLATSEPARATORS);
if (!m_font.CreateStockObject(DEFAULT_GUI_FONT))
if (!m_font.CreatePointFont(80, "MS Sans Serif"))
return-1;
m_wndTabCtl.SetFont(&m_font);
m_wndTabCtl.InsertItem(0,"Register Window",0);
m_wndTabCtl.InsertItem(0,"Memory Window",0);
return 0;
}
it is working fine.
now i want to insert a list view on the register tab and another list
view on Memory window.
but i am unable to find how to insert controls on the items.
if anyone knows how to insert controls on tab's please let me know.and
please tell me what other thing i shold read to make this control
fullproof.
Thanks & Regards
Harshal Shete