#pragma hdrstop
#endif
+#if wxUSE_MSGDLG
+
#include "wx/msgdlg.h"
#ifndef WX_PRECOMP
IMPLEMENT_CLASS(wxMessageDialog, wxDialog)
-wxMessageDialog::wxMessageDialog(wxWindow *parent,
- const wxString& message,
- const wxString& caption,
- long style,
- const wxPoint& WXUNUSED(pos))
-{
- m_caption = caption;
- m_message = message;
- m_parent = parent;
- SetMessageDialogStyle(style);
-}
-
int wxMessageDialog::ShowModal()
{
if ( !wxTheApp->GetTopWindow() )
// per MSDN documentation for MessageBox() we can prefix the message with 2
// right-to-left mark characters to tell the function to use RTL layout
// (unfortunately this only works in Unicode builds)
- wxString message = m_message;
+ wxString message = GetFullMessage();
#if wxUSE_UNICODE
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
{
#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)
{
}
return ans;
}
+
+#endif // wxUSE_MSGDLG