Print Page | Close Window

CXTPDockingPane set size ???

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3025
Printed Date: 12 December 2024 at 3:44am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPane set size ???
Posted By: hpesata
Subject: CXTPDockingPane set size ???
Date 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




Replies:
Posted By: Oleg
Date 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


Posted By: hpesata
Date 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



Posted By: Oleg
Date 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


Posted By: hpesata
Date 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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net