![]() |
how to save layout to ini file instead of reg? |
Post Reply
|
| Author | |
lovelypp
Groupie
Joined: 17 January 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
lovelypp
Groupie
Joined: 17 January 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Quote Reply
Posted: 16 February 2011 at 10:45pm |
|
can anyone help?
thanks!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
lovelypp
Groupie
Joined: 17 January 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Quote Reply
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!
|
|
![]() |
|
Oleg
Senior Member
Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 February 2011 at 1:22am |
|
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 |
Post Options
Thanks(0)
Quote Reply
Posted: 22 February 2011 at 4:08am |
|
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 |