Print Page | Close Window

CXTPPropExchangeXMLNode

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=14088
Printed Date: 04 July 2022 at 4:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPPropExchangeXMLNode
Posted By: LiLuan
Subject: CXTPPropExchangeXMLNode
Date Posted: 21 April 2009 at 2:10am
void CMainFrame::OnClose()
{
CXTPPropExchangeXMLNode px(FALSE, 0, _T("Settings"));

 CXTPPropExchangeSection pxDockingPane(px.GetSection(_T("DockingPane")));

 CXTPDockingPaneLayout layoutNormal(&m_paneManager);
 m_paneManager.GetLayout(&layoutNormal);
 layoutNormal.DoPropExchange(&pxDockingPane);

 px.SaveToFile(m_strIniFileName); 

}
 
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
 
CXTPPropExchangeXMLNode px(TRUE, 0, _T("Settings"));

 if (px.LoadFromFile(m_strIniFileName))
 {
  CXTPPropExchangeSection pxDockingPane(px.GetSection(_T("DockingPane")));
  CXTPDockingPaneLayout layoutNormal(&m_paneManager);
  if (layoutNormal.DoPropExchange(&pxDockingPane))
  {
   m_paneManager.SetLayout(&layoutNormal);
  }
 }

}
 
////err
at the point of .. if (px.LoadFromFile(m_strIniFileName))  ..the file(*.xml) is existed which will Load; but the function return value is FALSE; why??
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net