Print Page | Close Window

HOWTO: Use CXTPDockingPaneLayout::SaveTonode?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=19267
Printed Date: 28 April 2024 at 4:42am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: HOWTO: Use CXTPDockingPaneLayout::SaveTonode?
Posted By: mgampi
Subject: HOWTO: Use CXTPDockingPaneLayout::SaveTonode?
Date Posted: 05 December 2011 at 6:34pm
Any sample?
I don't know how to get the 'Node' parameter.
I want to use this function to store the layout to a distinct child node of an XML file!


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017



Replies:
Posted By: altair
Date Posted: 26 June 2013 at 2:10am
Hi I'm also interested to know this. Any answers so far?


Posted By: mgampi
Date Posted: 26 June 2013 at 11:32pm
No!
Neither from support nor from any forum member...


-------------
Martin

Product: Xtreme Toolkit v 19.0.0, new Projects v 19.1.0
Platform: Windows 10 v 1909 (64bit)
Language: VC++ 2017


Posted By: rdhd
Date Posted: 10 September 2013 at 5:29pm
Don't know if this helps but we save docking pane layouts to our own xml document. We use something like this:

            const TCHAR _xtRootSection[] = _T("DockingPaneLayouts");
            CXTPPropExchangeXMLNode px(FALSE, 0, _xtRootSection);

.
.
.
            px.LoadFromFile(LPCTSTR(CustomizationFileName));
.
.
.
                CXTPPropExchangeSection pxSection(px.GetSection(LPCTSTR(strLayout)));
                layout.DoPropExchange(&pxSection);

The "strLayout" is there because we are an MDI application and we have different document types and even different environments (UI layout - ribbon, qat, panes etc.) for each document type. That is, it is just a different node in our xml document.

"layout" is CXTPDockingPaneLayout object we get from the pane manager.

I have not stepped thru the CJ code. It might make its way to the SaveToNode API you mention.




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