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

CXTPDockingPane set size ???

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


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane set size ???
    Posted: 13 October 2005 at 3:32am
Hi!

XTP 9.70

we are using 3 panes with our frame-window and I would like to implement a feature, to restore a default view of my frame-window and the panes.

I am saving the initla size/docking-state of the panes and
I am using DockPane() to reestablish the docking-state but how can I set
the default size of a pane ?

SetWindowRect() is protected so I cant call this function.

any help with this would be greatly appreciated,
thanx in advance!

regards,
Hans

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: 14 October 2005 at 2:01am

Suggest you call

DestoryAll() and repeat all methods to create panes from OnCreate method.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Posted: 17 October 2005 at 2:59am
Hi!

thanx for your reply!

our panes lie in seperate MFC extension Dlls and get created during loading/initialization of the Dll os I cant destroy/create everything new. I managed to restore the initial pane docking state and the panes also resize to their initial size, without setting a new size ?
I dont understand why they do this, maybe you have a suggestion ?

regards,
Hans

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: 17 October 2005 at 6:17am

Hi,

So call DestroyPane and call Createpane for each pane you need to reset.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
hpesata View Drop Down
Groupie
Groupie


Joined: 16 July 2004
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote hpesata Quote  Post ReplyReply Direct Link To This Post Posted: 20 October 2005 at 11:34am
Hi Oleg!

I managed to save the initaia state for every pane and now I am trying to recreate them all from scratch, to restore my initial pane-display. I am using DestroyWindow() on every pane-window, call  DestroyAll() on the dockingpanemanager and afterwards create all panes again. I realized, that I dont receive an docking-pane notifications (XTPWM_DOCKINGPANE_NOTIFY) after doing all this, so my pane-windows dont get recreated/attached... are there any additional calls I have to use (Recalclayout, SyncPaneState, RedrawPanes) ?

thanx in advance!

regards,
Hans

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