Print Page | Close Window

How to get the view in tab

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


Topic: How to get the view in tab
Posted By: mqheather
Subject: How to get the view in tab
Date Posted: 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!!



Replies:
Posted By: Oleg
Date Posted: 09 January 2006 at 10:10am

Hello,

GetHandle returns HWND, try

CWnd::FromHandle(pItem->GetHandle());



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


Posted By: mqheather
Date Posted: 09 January 2006 at 7:58pm
but the hwnd returned didn't accord with the hwnd of view


Posted By: Oleg
Date 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


Posted By: Russ
Date 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.


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





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