X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e8e4025d1b61ce05e082f9a2c08ac64bea6408ae..690201a250dcdd2a38aa4156df4375dd135209df:/src/msw/msgdlg.cpp diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index e5e4eb07bb..c51438155d 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -9,7 +9,7 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "msgdlg.h" #endif @@ -104,8 +104,10 @@ int wxMessageDialog::ShowModal() if (hWnd) msStyle |= MB_APPLMODAL; +#ifndef __WXWINCE__ else msStyle |= MB_TASKMODAL; +#endif // do show the dialog int msAns = MessageBox(hWnd, m_message.c_str(), m_caption.c_str(), msStyle);