![]() |
CXTTabCtrl Vs CXTPTabControl |
Post Reply
|
| Author | |
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
Topic: CXTTabCtrl Vs CXTPTabControlPosted: 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 |
|
![]() |
|
Suyambu2002
Newbie
Joined: 28 April 2006 Location: India Status: Offline Points: 15 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |