CXTPDockingPane set size ??? |
Post Reply |
Author | |
hpesata
Groupie Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Suggest you call DestoryAll() and repeat all methods to create panes from OnCreate method. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
hpesata
Groupie Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
|
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 |
|
Oleg
Admin Group Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
Post Options
Thanks(0)
|
Hi, So call DestroyPane and call Createpane for each pane you need to reset. |
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
hpesata
Groupie Joined: 16 July 2004 Status: Offline Points: 60 |
Post Options
Thanks(0)
|
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 |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |