Print Page | Close Window

CXTPDockingPane - closing???

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=3018
Printed Date: 12 December 2024 at 3:50am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPDockingPane - closing???
Posted By: Kevin6
Subject: CXTPDockingPane - closing???
Date Posted: 12 October 2005 at 5:47am

I need to capture the close event for my Docking pane as soon as the user asks it to close. (eg clicks the top right x button). At this point I need to check the CXTPPropertyGrid that the Docking Pane contains to see if details need to be saved or not.

I have tried XTP_DPN_SHOWWINDOW (FALSE) - but by the time this has been called its too late as everything is on its way out and being shut down.... (eg what if the user has some details that are required to be editted before saving????)

I was expecting to see CXTPDockingPane to be derived from CWnd so I can capture the OnClose() event but its not. It doesn't expose any sort of OnClosing virtual method either... I've looked through the samples and have not found anything useful with regards to this problem.

Any pointers please?

Richard

 

 



-------------
Kevin.



Replies:
Posted By: Kevin6
Date Posted: 12 October 2005 at 5:59am

Ok - found it... not where I thought at all...

If the pane is closing then the MainFrm in the MDI app gets called in the

 OnDockingPaneNotify

which I thought was too late in the call of things but its no if you use

 XTP_DPN_CLOSEPANE

and

 return  XTP_ACTION_NOCLOSE

Hope that helps any one else.

Richard



-------------
Kevin.



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