Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - How to attach pane before is visible ?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

How to attach pane before is visible ?

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


Joined: 17 August 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Louis Quote  Post ReplyReply Direct Link To This Post Topic: How to attach pane before is visible ?
    Posted: 20 August 2005 at 3:55pm

Is there a way to attach a pane to its child before it is made visible ?

I am using layouts to save/restore command bars. When command bars are grouped (tabed) they are not made visible when the layout is loaded, only the one that was active. I need to receive some notification of the creation of the pane so I can attach it to its child even if its not visible. How can this be done ?

thanks,
Louis.

Back to Top
Louis View Drop Down
Newbie
Newbie


Joined: 17 August 2005
Status: Offline
Points: 19
Post Options Post Options   Thanks (0) Thanks(0)   Quote Louis Quote  Post ReplyReply Direct Link To This Post Posted: 20 August 2005 at 4:34pm

ok, I manage to get it work by attaching the panes just after loading the layout. The other problem I had with this approach, which I also got it to work, is that I needed the main view (SDI application) to initialise information for the childs, but when I was doing the attach in CMainFrame::OnCreate the view is not available, So I did it in view::OnInitialUpdate.

If you think there is a better way let me know, seems to be working fine now.

Thanks,
Louis.

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.063 seconds.