]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/frame.cpp
wxProcess-related code now works
[wxWidgets.git] / src / msw / frame.cpp
index d849fbc4a95c9d329e65809108c5d26e51b2d37d..368784f45910db2fb31d416f11b60f0a37f33312 100644 (file)
@@ -859,23 +859,10 @@ void wxFrame::OnActivate(wxActivateEvent& event)
   }
 }
 
-// The default implementation for the close window event - calls
-// OnClose for backward compatibility.
-
+// The default implementation for the close window event.
 void wxFrame::OnCloseWindow(wxCloseEvent& event)
 {
-    // Compatibility
-    if ( GetEventHandler()->OnClose() || !event.CanVeto())
-    {
-        this->Destroy();
-    }
-    else
-        event.Veto(TRUE);
-}
-
-bool wxFrame::OnClose(void)
-{
-    return TRUE;
+    this->Destroy();
 }
 
 // Destroy the window (delayed, if a managed window)