X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7520f3da332d64a676b6f7d27a56004fabf2db36..ccb5db57cdb1766eefb7023dda50ede9f0d01f78:/src/msw/msgdlg.cpp diff --git a/src/msw/msgdlg.cpp b/src/msw/msgdlg.cpp index d641c6a3d5..d19261705e 100644 --- a/src/msw/msgdlg.cpp +++ b/src/msw/msgdlg.cpp @@ -16,11 +16,12 @@ #pragma hdrstop #endif +#include "wx/msgdlg.h" + #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/utils.h" #include "wx/dialog.h" - #include "wx/msgdlg.h" #endif #include "wx/msw/private.h" @@ -96,6 +97,11 @@ int wxMessageDialog::ShowModal() if ( wxStyle & wxSTAY_ON_TOP ) msStyle |= MB_TOPMOST; +#ifndef __WXWINCE__ + if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) + msStyle |= MB_RTLREADING | MB_RIGHT; +#endif + if (hWnd) msStyle |= MB_APPLMODAL; else