Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - CXTPPropExchangeXMLNode
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPPropExchangeXMLNode

 Post Reply Post Reply
Author
Message
LiLuan View Drop Down
Newbie
Newbie


Joined: 21 April 2009
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote LiLuan Quote  Post ReplyReply Direct Link To This Post Topic: CXTPPropExchangeXMLNode
    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??
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.078 seconds.