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

CXTPDockingPane - closing???

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


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post Topic: CXTPDockingPane - closing???
    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.
Back to Top
Kevin6 View Drop Down
Groupie
Groupie


Joined: 13 May 2005
Location: United Kingdom
Status: Offline
Points: 30
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kevin6 Quote  Post ReplyReply Direct Link To This Post 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.
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.125 seconds.