![]() |
I can't change the page for CXTPTabControl |
Post Reply
|
| Author | |
cmhse
Newbie
Joined: 14 January 2008 Location: Taiwan Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Topic: I can't change the page for CXTPTabControlPosted: 14 January 2008 at 10:06pm |
|
m_wndTabControl.ModifyStyle(0, WS_CLIPCHILDREN|WS_CLIPSIBLINGS|WS_TABSTOP); m_ilTabCtrl.Create(16, 16, ILC_COLOR16|ILC_MASK, 0, 1);
m_pageTabControl2.Create(CTabPage::IDD, &m_wndTabControl); m_wndTabControl.ShowIcons(TRUE); m_wndTabControl.InsertItem(0, _T("page1"), m_pageTabControl, 0 m_wndTabControl.InsertItem(1, _T("page2"), m_pageTabControl2, 1); m_wndTabControl.GetPaintManager()->SetAppearance(xtpTabAppearancePropertyPage);
m_wndTabControl.GetPaintManager()->SetColor(xtpTabColorOffice2007); m_wndTabControl.GetPaintManager()->SetLayout(xtpTabLayoutAutoSize); Problem : I can't change the page. How to do?
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 January 2008 at 12:54am |
|
Hi,
m_wndTabControl.SetCurSel(0);
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
cmhse
Newbie
Joined: 14 January 2008 Location: Taiwan Status: Offline Points: 8 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 January 2008 at 5:22am |
|
m_pageTabControl.Create(CTabPage::IDD, &m_wndTabControl);
m_pageTabControl2.Create(CTabPage::IDD, &m_wndTabControl); m_wndTabControl.InsertItem(0, _T("page1"), m_pageTabControl, 0); m_wndTabControl.InsertItem(1, _T("page2"), m_pageTabControl2, 1); m_wndTabControl.GetPaintManager()->SetAppearance(xtpTabAppearancePropertyPage); m_wndTabControl.GetPaintManager()->SetColor(xtpTabColorOffice2007); m_wndTabControl.GetPaintManager()->SetLayout(xtpTabLayoutAutoSize); problem : There are not any behavior when mouse click the page2.
Why??
So I can't change the page.
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 15 January 2008 at 5:59am |
|
Hi,
Think you subclass m_wndTabControl from Static that doesn't have SS_NOTIFY flag. Change it in resources.
|
|
|
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 |