![]() |
CXTPTabControl can't show any tabs in Dialog |
Post Reply
|
| Author | |
dengjian82
Newbie
Joined: 18 April 2007 Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTPTabControl can't show any tabs in DialogPosted: 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
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 April 2007 at 8:43am |
|
Hello,
Attach sample project here.
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |