Print Page | Close Window

use CXTPTabControl in dock pane.need help

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=2628
Printed Date: 08 November 2025 at 4:11pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: use CXTPTabControl in dock pane.need help
Posted By: aspnpc
Subject: use CXTPTabControl in dock pane.need help
Date Posted: 24 July 2005 at 8:25am

 i created a CXTPDockingPane. then Attack a dialog into.

//////////////////////////////////  CMCDialog m_wndMainCtrl;//////////
if (m_wndMainCtrl.GetSafeHwnd() == 0)
     {
      m_wndMainCtrl.Create(IDD _MCB,this);
     }
     pPane->Attach(&m_wndMai nCtrl);
////////////////

in the dialog IDD_MCB , there is a Tab Control .

////////////////////

BOOL CMCDialog::OnInitDialog()
{
 CXTResizeDialog::OnInitDialog();

 m_ilTabCtrl.Create(16, 16, ILC_COLOR24|ILC_MASK, 0, 1);
 CBitmap bmp;
 bmp.LoadBitmap(IDB_MCB_TABCTRL);
 m_ilTabCtrl.Add(&bmp, RGB(192, 192, 192));
 m_wndTabControl.SetImageList(&m_ilTabCtrl);

 // create two pages.
 m_wndPageTexture.Create(IDD_MCB_TEXTURE,&m_wndTabC ontrol);
 m_wndPageNodes.Create(IDD_MCB_NODES,&m_wndTabContr ol);
 // insert the page into  xt tabctrl. 
 m_wndTabControl.InsertItem(1, _T("t1"), m_wndPageTexture, 0);
 m_wndTabControl.InsertItem(0, _T("t2"), m_wndPageNodes, 1); 
 m_wndTabControl.ShowIcons(TRUE);
 m_wndTabControl.SetAppearance(xtpTabAppearanceStateBut tons);
 return TRUE;  // return TRUE unless you set the focus to a control
}

////////////////////////////////
the Tab page 1 show fine !
but when we click the Tab item 2 . the XTPTabControl can't Change to Page 2!...

a stupid guy need your help.  thanks!!!!

@_@




Replies:
Posted By: Oleg
Date Posted: 24 July 2005 at 3:32pm

So Active Page become "Page 2" but Content of "Page 1" visible,

Or "Page 2" tab can't be clicked?



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



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