Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how can i swap the tab in CXTPTabClientWn
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how can i swap the tab in CXTPTabClientWn

 Post Reply Post Reply
Author
Message
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Topic: how can i swap the tab in CXTPTabClientWn
    Posted: 14 June 2004 at 2:08am
        In XT.pro 8.61 ,I relise the swqp tab function , but in 8.71 ,I think I must change the source code to relise the funtion ,  I think I can change the m_nIndex of each tab item and then use the repositon ,can i ??
Back to Top
blueseaing View Drop Down
Groupie
Groupie


Joined: 14 June 2004
Status: Offline
Points: 42
Post Options Post Options   Thanks (0) Thanks(0)   Quote blueseaing Quote  Post ReplyReply Direct Link To This Post Posted: 21 June 2004 at 8:54am

What i want to do is to swap the tab position,  and in the XT pro 8.61 , if i finish a function that create a new child window insert after the current active window, i will write the following code:

//create a new mdi child windows and insert after the current active

int CurSel;
CurSel = m_Tab->GetCurSel();

while((CurSel+1)<(m_Tab->GetItemCount()-1))
{
m_Tab->GetTabsArray().Swap(CurSel+1,m_Tab->GetItemCoun t()-1);

CurSel += 1;
}
m_Tab->Invalidate();

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.281 seconds.