]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/toplevel.h
Unicode compilation fix after last commit
[wxWidgets.git] / include / wx / toplevel.h
index ecb99fd9cb2df875c58d4c744bdd5887bf34c8ef..dbfa07ef6bfb566ca116d1a59aeb735d919b4607 100644 (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