Load Docking failed to create control |
Post Reply |
Author | |
Cedric
Newbie Joined: 27 October 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
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. |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
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 |
|
Cedric
Newbie Joined: 27 October 2005 Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Yes, you've right. Create was called in DockingPaneNotify. I tried your solution and it's work. thanks you
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |