Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - About CXTPDockingPaneLayout Problem
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

About CXTPDockingPaneLayout Problem

 Post Reply Post Reply
Author
Message
wangjun View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote wangjun Quote  Post ReplyReply Direct Link To This Post Topic: About CXTPDockingPaneLayout Problem
    Posted: 02 June 2009 at 12:21am
hi,
     pPane = m_paneManager.CreatePane(
  IDR_PANE_ALLRATE, CRect(0, 0,550, 500), xtpPaneDockLeft);
    
 1、   pPane->SetTitle(_T("视窗"));//
 2、   pPane->SetTitle(_T("View"));//
 
 CXTPDockingPaneLayout layoutNormal(&m_paneManager);
 m_paneManager.GetLayout(&layoutNormal);
 if(layoutNormal.LoadFromFile(_T("Layout.xml"),"Layout"))
 {
  MessageBox("加载成功");
  m_paneManager.SetLayout(&layoutNormal);
 }
 else
  MessageBox("加载失败");
 
if the Title Set for chinese ,  layoutNormal.LoadFromFile will fail.
else the Title Set for English, layoutNormal.LoadFromFile will Success..
 
the problem is why the Title Set for chinese ,will fail??
 
Thanks for taking the time....
 
 
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 June 2009 at 2:32am
Hi,
 
Can't reproduce it :( Do you have 12.*/13.* release ?
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
wangjun View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote wangjun Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2009 at 2:51am

Now I use 9.6 * release,under VC6.0 console,

How I Solve this problem ?Help me.Thanks. 
Back to Top
wangjun View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote wangjun Quote  Post ReplyReply Direct Link To This Post Posted: 02 June 2009 at 3:14am
If use 12.*/13.* release ,can solve this problem?!
 
it maybe Read xml File problem? 
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: 03 June 2009 at 1:22am
Hi,
 
Yes, you need update. in last releases utf-8 is default encoding for XML that will solve problem.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
wangjun View Drop Down
Newbie
Newbie


Joined: 02 June 2009
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote wangjun Quote  Post ReplyReply Direct Link To This Post Posted: 03 June 2009 at 2:52am
Ok,Thank you for your help!
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.141 seconds.