Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - how to save layout to ini file instead of reg?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to save layout to ini file instead of reg?

 Post Reply Post Reply
Author
Message
lovelypp View Drop Down
Groupie
Groupie


Joined: 17 January 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote lovelypp Quote  Post ReplyReply Direct Link To This Post Topic: how to save layout to ini file instead of reg?
    Posted: 10 February 2011 at 5:21am

when my app exit, it saves its layout:

// Save the current state for toolbars and menus.
SaveCommandBars(_T("CommandBars"));
// Save the current state for docking panes.
CXTPDockingPaneLayout layoutNormal(&m_paneManager);
m_paneManager.GetLayout(&layoutNormal);
layoutNormal.Save(_T("NormalLayout"));
my question is:
how to save to ini file instead of to registry ? how to control it ?
thanks in advance
Back to Top
lovelypp View Drop Down
Groupie
Groupie


Joined: 17 January 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote lovelypp Quote  Post ReplyReply Direct Link To This Post Posted: 16 February 2011 at 10:45pm
can  anyone help?
thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 17 February 2011 at 12:32am
Hi,

Check GUI_VisualStudio sample - you can store to XML or to In file with CXTPPropExchangeXMLNode and CXTPPropExchangeIniFile classes.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
lovelypp View Drop Down
Groupie
Groupie


Joined: 17 January 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote lovelypp Quote  Post ReplyReply Direct Link To This Post Posted: 21 February 2011 at 7:00pm
thanks! now I can save the layout to ini file.
but the position and size of mainframe is not saved and restored, how?
 
thanks!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2011 at 1:22am
Hi,

Check Samples\Controls\WindowPos , it demonstrates our CXTPWindowPos class.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
lovelypp View Drop Down
Groupie
Groupie


Joined: 17 January 2008
Status: Offline
Points: 34
Post Options Post Options   Thanks (0) Thanks(0)   Quote lovelypp Quote  Post ReplyReply Direct Link To This Post Posted: 22 February 2011 at 4:08am
got it, thanks!
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.047 seconds.