Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - Load Docking failed to create control
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Load Docking failed to create control

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


Joined: 27 October 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric Quote  Post ReplyReply Direct Link To This Post Topic: Load Docking failed to create control
    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.


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: 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
Back to Top
Cedric View Drop Down
Newbie
Newbie


Joined: 27 October 2005
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cedric Quote  Post ReplyReply Direct Link To This Post 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
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.140 seconds.