Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - CXTTabCtrl Vs CXTPTabControl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTTabCtrl Vs CXTPTabControl

 Post Reply Post Reply
Author
Message
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post Topic: CXTTabCtrl Vs CXTPTabControl
    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
Back to Top
Suyambu2002 View Drop Down
Newbie
Newbie
Avatar

Joined: 28 April 2006
Location: India
Status: Offline
Points: 15
Post Options Post Options   Thanks (0) Thanks(0)   Quote Suyambu2002 Quote  Post ReplyReply Direct Link To This Post 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
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: 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
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: 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
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.055 seconds.