X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..5c250a10332dc17263c66deb629b5fa8c4320f8a:/src/msw/msgdlg.cpp?ds=sidebyside diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index c51438155d..6ea59bcfdd 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -30,6 +30,11 @@ #include "wx/msw/private.h" +// For MB_TASKMODAL +#ifdef __WXWINCE__ +#include "wx/msw/wince/missing.h" +#endif + IMPLEMENT_CLASS(wxMessageDialog, wxDialog) wxMessageDialog::wxMessageDialog(wxWindow *parent, @@ -104,10 +109,8 @@ 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);