Reputation: 13
I am currently working on a project, a simulator, written in C++ MFC. In our simulator we have a components editor that runs in a child dialog of the simulator. This child dialog uses docking panes to organize information.
The only problem is, we can't get the docking panes of this child dialog to save their position on close/re-open. Is it possible? I know it is done by default if you start a new project using the Visual Studio style, but can it also be done for a child dialog that is not the main application?
class HDVehicleEditor_MainFrame : public CFrameWndEx
{
// Class declarations here
}
Upvotes: 1
Views: 756
Reputation: 11311
Persistence of the dock panels is implemented, I believe, by CDockingManager class, which is associated with the main frame window. In your dialog, who is responsible for this? Did you write your own CDockingManager? Then you would need to implement CDockingManager::LoadState()/CDockingManager::SaveState() yourself.
Upvotes: 1