CXTPDockingPane - closing??? |
Post Reply |
Author | |
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
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.
|
|
Kevin6
Groupie Joined: 13 May 2005 Location: United Kingdom Status: Offline Points: 30 |
Post Options
Thanks(0)
|
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.
|
|
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 |