#include "wx/wxprec.h"
#ifdef __VMS
-#define XtDisplay XTDISPLAY
#pragma message disable nosimpint
#include "wx/vms_x_fix.h"
#endif
#include "wx/settings.h"
#endif
+#include "wx/modalhook.h"
#include "wx/motif/private.h"
// ----------------------------------------------------------------------------
int wxMessageDialog::ShowModal()
{
+ WX_HOOK_MODAL_DIALOG();
+
const long style = GetMessageDialogStyle();
DialogCreateFunction dialogCreateFunction;
Display* dpy = XtDisplay(wParent);
- if (m_backgroundColour.Ok())
+ if (m_backgroundColour.IsOk())
{
- wxComputeColours (dpy, & m_backgroundColour, (wxColour*) NULL);
+ wxComputeColours (dpy, & m_backgroundColour, NULL);
XtSetArg(args[ac], XmNbackground, g_itemColors[wxBACK_INDEX].pixel); ac++;
XtSetArg(args[ac], XmNtopShadowColor, g_itemColors[wxTOPS_INDEX].pixel); ac++;