I tried modifying "XtremeToolkit\Samples\ToolkitPro\MDITabWindow" as below...
Left file: C:\Users\amanessis\AppData\Local\Temp\Rar$DR89.840\Samples\ToolkitPro\MDITabWindow\bncvw.cpp
Right file: C:\Source\XtremeToolkit\Samples\ToolkitPro\MDITabWindow\bncvw.cpp
354a355
> static CString str;
359,367c360,372
<
< CColorDialog dlgColor(pDoc->m_clrBall);
< if (dlgColor.DoModal() == IDOK)
< {
< pDoc->SetCustomBallColor(dlgColor.GetColor());
< pDoc->ClearAllColors();
< pDoc->m_bCustom = TRUE;
< MakeNewBall();
< }
---
>
> /// TEST STUFF...
>
> CMainFrame *f = (CMainFrame*)AfxGetMainWnd ();
> CXTPDockingPaneManager *manager = &f->m_paneManager;
> CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));
> if (px.OnBeforeExchange())
> {
> CXTPPropExchangeSection custom(px.GetSection(_T("CustomLayout")));
> CXTPPropExchangeSection pxDockingPane(custom->GetSection(_T("DockingPane")));
> manager->DoPropExchange(&pxDockingPane);
> str = px.GetEncodedXML();
> }
469c474,495
<
---
>
> // TEST STUFF...
>
> CXTPPropExchangeXMLNode px(TRUE, 0, _T("Settings"));
> px.LoadFromEncodedString(str);
> if (px.OnBeforeExchange())
> {
> CXTPPropExchangeSection sec(px.GetSection(_T("CustomLayout")));
> CMainFrame *f = (CMainFrame*)AfxGetMainWnd ();
> CXTPDockingPaneManager *manager = &f->m_paneManager;
> CXTPPropExchangeXMLNode px(TRUE, 0, _T("Settings"));
> if (px.OnBeforeExchange())
> {
> CXTPPropExchangeSection custom(px.GetSection(_T("CustomLayout")));
> CXTPPropExchangeSection pxDockingPane(custom->GetSection(_T("DockingPane")));
> manager->DoPropExchange(&pxDockingPane);
> manager->RecalcFramesLayout();
> manager->RedrawWindow();
> manager->RedrawPanes ();
> }
> }
> return;