Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTPTabControl can't show any tabs in Dialog
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabControl can't show any tabs in Dialog

 Post Reply Post Reply
Author
Message
dengjian82 View Drop Down
Newbie
Newbie


Joined: 18 April 2007
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote dengjian82 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabControl can't show any tabs in Dialog
    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
Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 18 April 2007 at 8:43am
 
Hello,
 
Attach sample project here.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.047 seconds.