Print Page | Close Window

CXTPTabControl can't show any tabs in Dialog

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=6913
Printed Date: 12 November 2025 at 3:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl can't show any tabs in Dialog
Posted By: dengjian82
Subject: CXTPTabControl can't show any tabs in Dialog
Date Posted: 18 April 2007 at 1:56am
In OnInitDialog function,codes as follows;
{
m_wndTabControl.Create(WS_CHILD|WS_VISIBLE|WS_CLIPCHILDREN|WS_CLIPSIBLINGS, CRect(50, 50, 100, 60), this, IDC_TABCONTROL);
 m_wndTabControl.GetPaintManager()->SetAppearance(xtpTabAppearancePropertyPage2003);
 m_wndTabControl.GetPaintManager()->m_bHotTracking = TRUE;
 m_wndTabControl.GetPaintManager()->m_bShowIcons = TRUE;
 m_wndTabControl.GetPaintManager()->DisableLunaColors(FALSE);
 m_wndTabControl.InsertItem(0, _T("0)", NULL,-1);
 m_wndTabControl.InsertItem(1, _T("1"), NULL,-1);
 m_wndTabControl.InsertItem(2, _T("12"), NULL,-1);
}  why there is nothing in the Dialog. In the sample i modified InsertItem function like this m_wndTabControl.InsertItem(nTab, lpszTitle, NULL, -1); it can show tabs,why? my email: dengjian2@21cn.com



Replies:
Posted By: Oleg
Date Posted: 18 April 2007 at 8:43am
 
Hello,
 
Attach sample project here.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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