Print Page | Close Window

How to attach pane before is visible ?

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=2755
Printed Date: 08 November 2025 at 9:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: How to attach pane before is visible ?
Posted By: Louis
Subject: How to attach pane before is visible ?
Date 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.




Replies:
Posted By: Louis
Date 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.




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