Print Page | Close Window

how to save layout to ini file instead of reg?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=17857
Printed Date: 19 June 2025 at 9:49pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: how to save layout to ini file instead of reg?
Posted By: lovelypp
Subject: how to save layout to ini file instead of reg?
Date 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



Replies:
Posted By: lovelypp
Date Posted: 16 February 2011 at 10:45pm
can  anyone help?
thanks!


Posted By: Oleg
Date 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


Posted By: lovelypp
Date 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!


Posted By: Oleg
Date Posted: 22 February 2011 at 1:22am
Hi,

Check Samples\Controls\WindowPos , it demonstrates our CXTPWindowPos class.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: lovelypp
Date Posted: 22 February 2011 at 4:08am
got it, thanks!



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