Print Page | Close Window

CXTPTabControl display but cannnot change

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=2493
Printed Date: 09 November 2025 at 11:49am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl display but cannnot change
Posted By: MLatimer
Subject: CXTPTabControl display but cannnot change
Date Posted: 01 July 2005 at 1:50pm

Hi

We create a CXTPTabControl with the following code. The control is displayed on of the form, but clicking the tabs does not display the relevent child window. The code is copied from the sample for tab manager. What am I missing?

// Create the pages.
m_pageMotorPanel.Create(CInstMotorPanel::IDD, &m_wndTabControl);
m_pageHistoryPanel.Create(CInstHistoryPanel::IDD, &m_wndTabControl);
m_pageFilterPanel.Create(CInstFilterPanel::IDD, &m_wndTabControl);

// Add the pages
m_wndTabControl.InsertItem(0, _T("History"), m_pageHistoryPanel, 0);
m_wndTabControl.InsertItem(1, _T("Filters"), m_pageFilterPanel, 0);
m_wndTabControl.InsertItem(2, _T("Motor"), m_pageMotorPanel, 0);

// Set the display of the tabs.
m_wndTabControl.GetPaintManager()->SetPosition(xtpTabPositionBottom);
m_wndTabControl.GetPaintManager()->SetAppearance((XTPTabAppearanceStyle)3);
m_wndTabControl.GetPaintManager()->SetOneNoteColors(TRUE);
m_wndTabControl.GetPaintManager()->m_clientFrame = (XTPTabClientFrame)0;

m_wndTabControl.ShowIcons(FALSE);




Replies:
Posted By: MLatimer
Date Posted: 01 July 2005 at 2:07pm

Found It!!

Set Nofity Parent flag in resource editor!!




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