Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - use CXTPTabControl in dock pane.need help
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

use CXTPTabControl in dock pane.need help

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


Joined: 24 July 2005
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote aspnpc Quote  Post ReplyReply Direct Link To This Post Topic: use CXTPTabControl in dock pane.need help
    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!!!!

@_@

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: 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
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.063 seconds.