#include "wx/settings.h"
#endif //WX_PRECOMP
+#include "wx/modalhook.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/string.h"
// is stopped (via EndModal()) it returns the exit code.
int wxDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
wxCHECK_MSG(!IsModal(),GetReturnCode(),wxT("wxDialog::ShowModal called within its own modal loop"));
// Show(true) will set m_isShown = true