![]() |
how to save layout to ini file instead of reg? |
Post Reply ![]() |
Author | |
lovelypp ![]() Groupie ![]() Joined: 17 January 2008 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
|
lovelypp ![]() Groupie ![]() Joined: 17 January 2008 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() |
can anyone help?
thanks!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
lovelypp ![]() Groupie ![]() Joined: 17 January 2008 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() |
thanks! now I can save the layout to ini file.
but the position and size of mainframe is not saved and restored, how?
thanks!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Check Samples\Controls\WindowPos , it demonstrates our CXTPWindowPos class.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
lovelypp ![]() Groupie ![]() Joined: 17 January 2008 Status: Offline Points: 34 |
![]() ![]() ![]() ![]() ![]() |
got it, thanks!
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |