]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Document wxKill(wxSIGTERM) reliance on having an open window in wxMSW.
[wxWidgets.git] / src / common / dlgcmn.cpp
index 5cbbc7e390ba3c85899705ddd54716c17abbf5ec..4c52be1cee32e0e0174b8b31488772bccd0733bb 100644 (file)
@@ -43,6 +43,7 @@
 #include "wx/bookctrl.h"
 #include "wx/scrolwin.h"
 #include "wx/textwrapper.h"
+#include "wx/modalhook.h"
 
 #if wxUSE_DISPLAY
 #include "wx/display.h"
@@ -422,7 +423,7 @@ bool wxDialogBase::EmulateButtonClickIfPresent(int id)
     if ( !btn || !btn->IsEnabled() || !btn->IsShown() )
         return false;
 
-    wxCommandEvent event(wxEVT_COMMAND_BUTTON_CLICKED, id);
+    wxCommandEvent event(wxEVT_BUTTON, id);
     event.SetEventObject(btn);
     btn->GetEventHandler()->ProcessEvent(event);