added wxTLW::ShouldPreventAppExit() which can be overridden to allow closing the application even if some windows are still opened; use it for wxHtmlHelpFrame

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-04-07 00:38:49 +00:00
parent 2ed8c8dd1f
commit 65afac3fbc
4 changed files with 62 additions and 11 deletions

View File

@@ -229,8 +229,14 @@ protected:
virtual bool IsOneOfBars(const wxWindow *WXUNUSED(win)) const
{ return false; }
// check if we should exit the program after deleting this top level
// window (this is used in common dtor and wxMSW code)
// this function may be overridden to return false to allow closing the
// application even when this top level window is still open
//
// notice that the window is still closed prior to the application exit and
// so it can still veto it even if it returns false from here
virtual bool ShouldPreventAppExit() const { return true; }
// check if we should exit the program after deleting this window
bool IsLastBeforeExit() const;
// send the iconize event, return true if processed