![]() |
How to get the view in tab |
Post Reply
|
| Author | |
mqheather
Newbie
Joined: 01 December 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: How to get the view in tabPosted: 08 January 2006 at 7:45pm |
|
I want to get the view in the tab,but CXTPTabManagerItem::GetHandle can't get it?? How can i do??Thank you!!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 10:10am |
|
Hello, GetHandle returns HWND, try CWnd::FromHandle(pItem->GetHandle()); |
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
mqheather
Newbie
Joined: 01 December 2005 Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 January 2006 at 7:58pm |
|
but the hwnd returned didn't accord with the hwnd of view
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2006 at 11:36am |
|
ok, explain better what you do CXTPTabManagerItem is tab of DockingPane, TabControl or TabWorkspace?
|
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2006 at 5:01pm |
|
I think he's reffering to the CXTPTabControl which in turn is derived from CXTPTabManager.
I too faced this problem and ended up just saving the tab view's pointer in the parent view hosting the CXTPTabControl. I too would like to know the recommended way of getting the view from the TabItem. |
|
![]() |
|
Russ
Groupie
Joined: 21 September 2003 Location: Russian Federation Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 11 January 2006 at 5:06pm |
|
Ok, just tried what Oleg suggested and it worked just fine.
CMyView* pView = (CMyView*)CWnd::FromHandle(pTabItem->GetHandle()); |
|
![]() |
|
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 |