X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..2d17efa94e68c37fb415cf530daa558692ab7c2d:/src/msw/msgdlg.cpp diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index c51438155d..5e94f0ebd7 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, @@ -74,9 +79,11 @@ int wxMessageDialog::ShowModal() unsigned int msStyle = MB_OK; if (m_dialogStyle & wxYES_NO) { +#if !(defined(__SMARTPHONE__) && defined(__WXWINCE__)) if (m_dialogStyle & wxCANCEL) msStyle = MB_YESNOCANCEL; else +#endif // !(__SMARTPHONE__ && __WXWINCE__) msStyle = MB_YESNO; if (m_dialogStyle & wxNO_DEFAULT) @@ -104,10 +111,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);