EDN Admin
Well-known member
Hi
In my application most of my dockable windows are created as part of my CMainFrame::OnCreate. However, there are a couple of CDockablePane derived windows that are not created at this point, but rather only when the user chooses to show those particular windows.
My question is what is the best/correct way to load and save the docking states for the windows that are not created during the CMainFrame::OnCreate? By default I dock these windows to the MainFrame and then call CDockablePane::LoadState (and I also call CDockablePane::SaveState before these windows are destroyed) but Im guessing I need to do something else because this doesnt seem to have any effect by itself.
I hope this makes sense, any help would be much appreciated.
Thanks
View the full article
In my application most of my dockable windows are created as part of my CMainFrame::OnCreate. However, there are a couple of CDockablePane derived windows that are not created at this point, but rather only when the user chooses to show those particular windows.
My question is what is the best/correct way to load and save the docking states for the windows that are not created during the CMainFrame::OnCreate? By default I dock these windows to the MainFrame and then call CDockablePane::LoadState (and I also call CDockablePane::SaveState before these windows are destroyed) but Im guessing I need to do something else because this doesnt seem to have any effect by itself.
I hope this makes sense, any help would be much appreciated.
Thanks
View the full article