Print Page | Close Window

CXTTabCtrl Vs CXTPTabControl

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


Topic: CXTTabCtrl Vs CXTPTabControl
Posted By: Suyambu2002
Subject: CXTTabCtrl Vs CXTPTabControl
Date Posted: 09 January 2008 at 9:54am
Hi
 
I wanted to create a tab control, basically to have multiple browser window in tab format like IE7.
 
I tried using the following classes...
CXTTabCtrl.
CXTPTabControl.
 
I found some pros and cons with both of these classes.
 
CXTTabCtrl contains some direct functions like...
AddView ( ... )
GetActiveView ( ... )
GetView ( index )
 
Which is very much useful for me to add a html view at runtime and manage these views by other functions.
 
Whereas CXTPTabControl, I din't find any functions basically to get the active view or get view based on index.  But this class has got some good UI stuffs which is not available in the other class like...
SetAppearence ( ... )
SetColor ( ... )
SetPosition ( ... )
SetLayout ( ... )
 
Looking at the CXTPTabControl UI is better than CXTTabCtrl.
 
Is there a way that CXTTabCtrl can support all the above UI functions or
using CXTPTabControl - can i access the views associate with each tab.
 
Am not sure what i have tried is corect or not.
Just update me if am wrong.
 
Even thought of using "CXTPTabClientWnd", but I want to create the above in SDI application.
 
Also let me know is there any other better class to get the above
functionality.
 
Thanks in advance. 
 


-------------
Best Regards
Suyambu



Replies:
Posted By: Suyambu2002
Date Posted: 09 January 2008 at 11:30pm
Hi All
 
For the above question...
I found that there is a Function called
CXTPTabManagerItem::GetHandle ( ) which can get the HWND of the object associated with the TAB.
 
When we use CXTPTabManager::GetSelectedItem ( ) which returns
CXTPTabManagerItem. I think , From this manager item we can get the object associated with the TAB. In the above case it retrieves the html view associated with the tab.
 
Correct me if am wrong.


-------------
Best Regards
Suyambu


Posted By: Oleg
Date Posted: 10 January 2008 at 8:20am
Hello,
CXTTabCtrl is our old class derived from CTabCtrl - we can't control most of metrics of standard CTabCtrl
CXTPTabContrl is derived from CWnd and don't use any standard controls.


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


Posted By: Oleg
Date Posted: 10 January 2008 at 8:22am
ps. check Samples\CommandBars\ReBarSample  it shows how to create IE-like tabs.

-------------
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