Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - SetLayout - Version conflict
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SetLayout - Version conflict

 Post Reply Post Reply
Author
Message
MGebler View Drop Down
Groupie
Groupie


Joined: 18 May 2006
Location: Germany
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote MGebler Quote  Post ReplyReply Direct Link To This Post Topic: SetLayout - Version conflict
    Posted: 02 April 2008 at 8:22am
Hi
I am storing the panelayout inside my documents using:
 
CXTPDockingPaneLayout* pLayout = 
  GetPaneManager()->CreateLayout();
CArchive ar( pMemFile, CArchive::load );
pLayout->Serialize( ar );
GetPaneManager()->SetLayout( pLayout );
 
I have done this with all versions since v10...
Now, using the beta version v12.0.0, there is a compatibility problem.
 
Inside the CXTPDockingPaneTabbedContainer::DoPropExchange method you are loading the "Maximized" boolean value if
GetSchema() returns a value greater _XTP_SCHEMA_1122 allthough the layout information was stored using version 11.2.2.
 
If I overwrite the Schema value with _XTP_SCHEMA_1122 inside the method
 
void CXTPDockingPaneLayout::Serialize(CArchive& ar)
{
    CXTPPropExchangeArchive px(ar);
    // Force Value m_nSchema to 32
    DoPropExchange(&px);
}
 
the loading is ok. 
 
With best regards
  Marcus
 
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 02 April 2008 at 8:48am
Thanks, you are right. beta release gives good results :)
 
Please just replace
 
secSummary->ExchangeSchema
 
to
 
pPX->ExchangeSchema();
 
in both _Save and _Load methods.
 
 
Fixed for final 12.0 release.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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.172 seconds.