CXTTabCtrl SetCurSel issues |
Post Reply |
Author | |
nktsrw
Newbie Joined: 13 March 2008 Location: Argentina Status: Offline Points: 9 |
Post Options
Thanks(0)
Posted: 17 April 2008 at 10:51am |
Hi,
I have a subclassed CXTTabCtrl, but adding three controls (dialogs) to the tab control and selecting the first one with SetCurSel(0) doesn't work correctly: it selects the first tab but the content is the last control added. Instead using SetActiveView(0) it works fine. Am I doing something wrong? this is a code snippet: void MyTab::PreSubclassWindow() { CXTTabCtrl::PreSubclassWindow(); this->_Dialog1.Create(IDD_DIALOG1); this->_Dialog2.Create(IDD_DIALOG2); this->_Dialog3.Create(IDD_DIALOG3); this->AddControl(_T("Dialog1"), &(this->_Dialog1),0); this->AddControl(_T("Dialog2"), &(this->_Dialog2), 1); this->AddControl(_T("Dialog3"), &(this->_Dialog3), 2); //this->SetCurSel(0); this->SetActiveView(0); } Thanks, Seb |
|
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 |