Print Page | Close Window

How to know how many pane in one mini wnd?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=16990
Printed Date: 31 January 2025 at 4:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to know how many pane in one mini wnd?
Posted By: nick_w
Subject: How to know how many pane in one mini wnd?
Date Posted: 23 July 2010 at 12:45pm
Hi,
 
I have the following code in my project:

CXTPDockingPane* pPane = m_oPaneManager.FindPane(ID_PANE_DDO);
if ( pPane )
   pSite = pPane->GetDockingSite();
if( pSite && pSite->IsKindOf(RUNTIME_CLASS(CXTPDockingPaneMiniWnd)) )
   pFrame = (CXTPDockingPaneMiniWnd*)pSite;

Now, I need to know how many panes this mini wnd holds. Can somebody help? Thanks.
 
BTW, I am using Visual C++.



Replies:
Posted By: Aaron
Date Posted: 23 July 2010 at 4:52pm
Hi,
 
With ActiveX (VB):
 
Me.DockingPaneMainform.FindPane(1).ParentContainer.Count 'Holds the number of panes docked inside container
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....


Posted By: nick_w
Date Posted: 23 July 2010 at 5:02pm
Thanks. But I am using Visual C++ MFC. I can't find the similar function in there.
 
Originally posted by Aaron Aaron wrote:

Hi,
 
With ActiveX (VB):
 
Me.DockingPaneMainform.FindPane(1).ParentContainer.Count 'Holds the number of panes docked inside container
 
 



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