Sunday, April 29, 2012 8:10 AM
I have a MFC MDI application (using the new MFC Feature Pack), but I am facing a problem. The application has multiple dockable panes. I dock some of them in a tabbed layout. Whenever I close the application (the layout state is automatically saved in the registry). When I reopen the application, the state gets loaded from the registry, but the problem is that my dockable panes (especially the ones that were tabbed) are randomly docked, and some of them appear as duplicates!
Please help me.
Thank you :)
Monday, April 30, 2012 9:19 AMModerator
There may be the parent frame is hidden when you call the loadState.
Please use code like the following to hide the miniframes for any hidden docking panes (this example is for the output window):
// Hide invisible docking pane's miniframe:
if (!m_wndOutput.IsVisible() && m_wndOutput.GetParentMiniFrame()->GetSafeHwnd() != NULL)
Jesse Jiang [MSFT]
MSDN Community Support | Feedback to us
- Marked As Answer by Jesse JiangMicrosoft Contingent Staff, Moderator Tuesday, May 08, 2012 3:27 AM