Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > General Discussion
  New Posts New Posts RSS Feed - getiting handle to pane or frame
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

getiting handle to pane or frame

 Post Reply Post Reply
Author
Message
madriceg View Drop Down
Newbie
Newbie


Joined: 04 October 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote madriceg Quote  Post ReplyReply Direct Link To This Post Topic: getiting handle to pane or frame
    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?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 October 2007 at 2:01pm
Hello,
 
Call FindPane of m_paneManager.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
madriceg View Drop Down
Newbie
Newbie


Joined: 04 October 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote madriceg Quote  Post ReplyReply Direct Link To This Post 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?

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
madriceg View Drop Down
Newbie
Newbie


Joined: 04 October 2007
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote madriceg Quote  Post ReplyReply Direct Link To This Post 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? 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.