X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ede7b01760e920b31520b15c919445db882a8012..ec2df34e27ba41f202ecbf096cdfed082a9ddb8f:/src/osx/carbon/msgdlg.cpp diff --git a/src/osx/carbon/msgdlg.cpp b/src/osx/carbon/msgdlg.cpp index 49b5bb1f5a..6ce68371d1 100644 --- a/src/osx/carbon/msgdlg.cpp +++ b/src/osx/carbon/msgdlg.cpp @@ -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(); @@ -69,8 +72,8 @@ int wxMessageDialog::ShowModal() // // if the extended text is not empty we ignore the caption // and use the message and the extended message - - + + wxString msgtitle,msgtext; if(m_extendedMessage.IsEmpty()) { @@ -266,7 +269,7 @@ int wxMessageDialog::ShowModal() } } } - + SetReturnCode(resultbutton); return resultbutton;