]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/msgdlg.cpp
Treat G_IO_HUP as read, not error, event because EOF is not exceptional.
[wxWidgets.git] / src / os2 / msgdlg.cpp
index 97e9b8f99c4ca1d7e317208b7a86616c1d04f355..0fb64437af16fc44ca3e5943a99cc772bd25fd97 100644 (file)
@@ -22,6 +22,7 @@
     #include "wx/math.h"
 #endif
 
+#include "wx/modalhook.h"
 #include "wx/os2/private.h"
 
 #include <stdlib.h>
@@ -34,6 +35,8 @@ IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
 
 int wxMessageDialog::ShowModal()
 {
+    WX_HOOK_MODAL_DIALOG();
+
     HWND                            hWnd = 0;
     ULONG                           ulStyle = MB_OK;
     int                             nAns = wxOK;