#include "wx/control.h"
#include "wx/thread.h"
#include "wx/evtloop.h"
+#include "wx/modalhook.h"
#include "wx/osx/private.h"
int wxMessageDialog::ShowModal()
{
- wxCFEventLoopPauseObservers pause;
+ WX_HOOK_MODAL_DIALOG();
+
+ wxCFEventLoopPauseIdleEvents pause;
int resultbutton = wxID_CANCEL;