Print Page | Close Window

Load Docking failed to create control

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=3394
Printed Date: 12 December 2024 at 3:45am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Load Docking failed to create control
Posted By: Cedric
Subject: Load Docking failed to create control
Date Posted: 12 December 2005 at 11:32am
I have a docking pane that inherite of CWnd with CTreeCtrl inside. i unable too the save/load state of docking pane.

CTreeCtrl is creating in OnCreate function of my pane. But If user hide the pane and close the application and reload it. No create function was called and the treectrl wasn't initialize. I tried to put DoPropExchange function but it's never call. And i didn't find the solution in samples.

then How can I handle it thanks in advance.





Replies:
Posted By: Oleg
Date Posted: 14 December 2005 at 5:53am

Hi,

I think you create your window in OnDockingPaneNotifyHandler that not called before DockingPane become visible. (user click on tab to show it)

As solution you can create you child control in CMainFrame::OnCreate and only attach it in OnDockingPaneNotify

 



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


Posted By: Cedric
Date Posted: 14 December 2005 at 7:41am
Yes, you've right. Create was called in DockingPaneNotify. I tried your solution and it's work. thanks you



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