Print Page | Close Window

getiting handle to pane or frame

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Visual C++ MFC Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=8387
Printed Date: 02 July 2024 at 7:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: getiting handle to pane or frame
Posted By: madriceg
Subject: getiting handle to pane or frame
Date Posted: 10 October 2007 at 10:56am
I have a pane/frame with a CTreeCtrl in it.  I want to parse a file and put the contents in the CTreeCtrl.  How do I get a handle to the pane or frame from another class?



Replies:
Posted By: Oleg
Date Posted: 10 October 2007 at 2:01pm
Hello,
 
Call FindPane of m_paneManager.


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


Posted By: madriceg
Date Posted: 10 October 2007 at 3:03pm

Ok I got the pane.  I created a form with a CTreeCtrl on it and when I loaded the paned, I put this form on the pane.  How do I populate the tree now that I have the pane?



Posted By: Oleg
Date Posted: 11 October 2007 at 12:40am
Hi,
 
Now if you have Pointer to pane, call pPane->GetChild() it return Frame that attached to pane....
 
 


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


Posted By: madriceg
Date Posted: 11 October 2007 at 9:11am
Thanks, I really appreciate everything.  The view of the frame is not active.  How do I set this to active through code? 


Posted By: Oleg
Date Posted: 12 October 2007 at 8:33am

what do you mean by not active ? do you need set focus ? How do you create frame+view ?



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