]> git.saurik.com Git - wxWidgets.git/blobdiff - src/qt/window.cpp
Added missing include for non-precompiled headers.
[wxWidgets.git] / src / qt / window.cpp
index ed842eb30b744dd15abd56b201472b5671c9f2ba..761e34e9d077d7e00f6c01017924588b2ab74361 100644 (file)
@@ -38,7 +38,6 @@
 
 extern wxList wxPendingDelete;
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxWindow, wxEvtHandler)
 
 BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
@@ -49,7 +48,6 @@ BEGIN_EVENT_TABLE(wxWindow, wxEvtHandler)
   EVT_IDLE(wxWindow::OnIdle)
 END_EVENT_TABLE()
 
-#endif
 
 
 // Constructor
@@ -1113,7 +1111,10 @@ bool wxWindow::Close(bool force)
 {
   wxCloseEvent event(wxEVT_CLOSE_WINDOW, m_windowId);
   event.SetEventObject(this);
+#if WXWIN_COMPATIBILITY
   event.SetForce(force);
+#endif
+  event.SetCanVeto(!force);
 
   return GetEventHandler()->ProcessEvent(event);
 }