X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/978af864269a739e77d9431c8465435e3f8f7407..539872aef30aedbf24339285374d19c0aedd2b11:/src/msw/toplevel.cpp?ds=inline diff --git a/src/msw/toplevel.cpp b/src/msw/toplevel.cpp index 214fbc7718..97fec59a6a 100644 --- a/src/msw/toplevel.cpp +++ b/src/msw/toplevel.cpp @@ -27,6 +27,7 @@ #include "wx/toplevel.h" #ifndef WX_PRECOMP + #include "wx/msw/missing.h" #include "wx/app.h" #include "wx/dialog.h" #include "wx/string.h" @@ -50,7 +51,6 @@ #include "wx/msw/wince/missing.h" #endif -#include "wx/msw/missing.h" #include "wx/msw/winundef.h" #include "wx/display.h" @@ -503,8 +503,10 @@ bool wxTopLevelWindowMSW::CreateFrame(const wxString& title, const wxSize sz = IsAlwaysMaximized() ? wxDefaultSize : size; +#ifndef __WXWINCE__ if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) exflags |= WS_EX_LAYOUTRTL; +#endif return MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags); } @@ -564,13 +566,13 @@ bool wxTopLevelWindowMSW::Create(wxWindow *parent, // all dialogs are popups dlgTemplate->style |= WS_POPUP; - + +#ifndef __WXWINCE__ if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) { dlgTemplate->dwExtendedStyle |= WS_EX_LAYOUTRTL; } -#ifndef __WXWINCE__ // force 3D-look if necessary, it looks impossibly ugly otherwise if ( style & (wxRESIZE_BORDER | wxCAPTION) ) dlgTemplate->style |= DS_MODALFRAME;