Print Page | Close Window

CXTPDockingPaneMiniWnd && GetParentFrame

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=350
Printed Date: 11 May 2024 at 2:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPaneMiniWnd && GetParentFrame
Posted By: JamesC
Subject: CXTPDockingPaneMiniWnd && GetParentFrame
Date Posted: 12 January 2004 at 2:14pm
When a Wnd is not docked, the CFrameWnd that is returned from GetParentFrame is not the CMDIChildFrame but CXTPDockingPaneMiniWnd. How do you get from this class to the ChildFrame?



Replies:
Posted By: Oleg
Date Posted: 13 January 2004 at 7:15am

CXTPDockingPaneTabbedContainer* pContainer = DYNAMIC_DOWNCAST(CXTPDockingPaneTabbedContainer, pWnd->GetParent());

CMDIChildWnd* pMdiChild = DYNAMIC_DOWNCAST(CMDIChildWnd, pContainer->GetDockingPaneManager()->GetSite());



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