Print Page | Close Window

how can i swap the tab in CXTPTabClientWn

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=836
Printed Date: 25 December 2024 at 9:17am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how can i swap the tab in CXTPTabClientWn
Posted By: blueseaing
Subject: how can i swap the tab in CXTPTabClientWn
Date 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 ??



Replies:
Posted By: blueseaing
Date 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();




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