X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2afb9e169048b77a41c63b4f4eea3b10daee641a..b2f0b9342aecc01f06871c53c75c53e8f7be9ff3:/src/msw/msgdlg.cpp diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index 83b2d98d22..061b9211a2 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -16,6 +16,8 @@ #pragma hdrstop #endif +#if wxUSE_MSGDLG + #include "wx/msgdlg.h" #ifndef WX_PRECOMP @@ -109,7 +111,7 @@ int wxMessageDialog::ShowModal() #endif // wxUSE_UNICODE // do show the dialog - int msAns = MessageBox(hWnd, message, m_caption, msStyle); + int msAns = MessageBox(hWnd, message.wx_str(), m_caption.wx_str(), msStyle); int ans; switch (msAns) { @@ -132,3 +134,5 @@ int wxMessageDialog::ShowModal() } return ans; } + +#endif // wxUSE_MSGDLG