]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/carbon/msgdlg.cpp
Fit modeless preferences dialog to its contents too.
[wxWidgets.git] / src / osx / carbon / msgdlg.cpp
index b0671595c9fc694f3215a9da5a2bad5c5ccd2789..6ce68371d1143797a85e6fb84bf9aff3fafcdde5 100644 (file)
@@ -19,6 +19,7 @@
 #endif
 
 #include "wx/thread.h"
+#include "wx/modalhook.h"
 #include "wx/osx/uma.h"
 
 
@@ -36,6 +37,8 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
 
 int wxMessageDialog::ShowModal()
 {
+    WX_HOOK_MODAL_DIALOG();
+
     int resultbutton = wxID_CANCEL;
 
     const long style = GetMessageDialogStyle();