Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Docking Pane
  New Posts New Posts RSS Feed - The panel size issue?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

The panel size issue?

 Post Reply Post Reply
Author
Message
grade View Drop Down
Newbie
Newbie
Avatar

Joined: 07 December 2006
Location: Taiwan
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote grade Quote  Post ReplyReply Direct Link To This Post Topic: The panel size issue?
    Posted: 17 October 2007 at 6:01pm
Hello Sir,
 
               I have a probelm for Pane size  for you . I creating some panes for my program, that i want to restore default size  for all panes. But the result is not correct. You can See SkinPane02.jpg and SkinPane03.jpg for
my attach RAR file(SkinpaneSize.rar).
 
First time,I used to CreatePane(.., CRect(0,0,170,120), xtpPaneDockLeft) for Pane on OnCreate Event for CChildFrame for the my program .
 
Second time,  used to FloatPane(..,CRect(0,0,170,120)) for Pane to restore  default size for all pane for the my program .
 
I do'nt want to use SetMinTrackSize() and SetMaxTrackSize() to bridle pane size for all panes.
 
I attach my sample code for you.Do you have some suggestions for me?
Thank you for you help!
 
 
Grade Wang
Software Engineer
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: 18 October 2007 at 5:02am
Hi,
 
If you need restore layout, you better call m_paneManager.DestroyAll() and recreate same layout you had in CMainFrame::OnCrate.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
grade View Drop Down
Newbie
Newbie
Avatar

Joined: 07 December 2006
Location: Taiwan
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote grade Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2007 at 12:07am
Hello Sir,
                  If i call m_paneManager.DestroyAll() , That all subobjects(m_ViewPane01, m_ViewPane02,m_ViewPane03,m_ViewPane04) to  Destroy for my sampe code. The result is not good.  If I want to destory all panes, but keep All subobjects. How to do?Do you have suggestions for me?
Thank you for you help!
 
 
Grade Wang
Software Engineer
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: 19 October 2007 at 12:49am

Hello,

Try to call m_paneManager.ClosePane(pPane) for each pane before destroy.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
grade View Drop Down
Newbie
Newbie
Avatar

Joined: 07 December 2006
Location: Taiwan
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote grade Quote  Post ReplyReply Direct Link To This Post Posted: 19 October 2007 at 2:25am
Hello Sir,
 
               This solution is work fine! Thank you for you help!
Grade Wang
Software Engineer
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.188 seconds.