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