Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - HOWTO: Use CXTPDockingPaneLayout::SaveTonode?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

HOWTO: Use CXTPDockingPaneLayout::SaveTonode?

 Post Reply Post Reply
Author
Message
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post Topic: HOWTO: Use CXTPDockingPaneLayout::SaveTonode?
    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
Back to Top
altair View Drop Down
Newbie
Newbie


Joined: 26 June 2013
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote altair Quote  Post ReplyReply Direct Link To This Post Posted: 26 June 2013 at 2:10am
Hi I'm also interested to know this. Any answers so far?
Back to Top
mgampi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 July 2003
Status: Offline
Points: 1198
Post Options Post Options   Thanks (0) Thanks(0)   Quote mgampi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
rdhd View Drop Down
Senior Member
Senior Member
Avatar

Joined: 13 August 2007
Location: United States
Status: Offline
Points: 865
Post Options Post Options   Thanks (0) Thanks(0)   Quote rdhd Quote  Post ReplyReply Direct Link To This Post 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.

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.156 seconds.