void CChildFrame::OnSavesettings() { // TODO: Add your command handler code here CDockState dockstate; CFrameWnd::GetDockState(dockstate); dockstate.SaveState("ChildDockbars"); }
void CMainFrame::OnClose() { //store the toolbar positions CDockState dockState; CString szToolbarPositionsKey; szToolbarPositionsKey.LoadString( IDS_TOOLBARKEY ); GetDockState( dockState ); dockState.SaveState( szToolbarPositionsKey ); CMDIFrameWnd::OnClose(); }