git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41018
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if ( wxStyle & wxSTAY_ON_TOP )
msStyle |= MB_TOPMOST;
if ( wxStyle & wxSTAY_ON_TOP )
msStyle |= MB_TOPMOST;
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
msStyle |= MB_RTLREADING | MB_RIGHT;
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
msStyle |= MB_RTLREADING | MB_RIGHT;
if (hWnd)
msStyle |= MB_APPLMODAL;
if (hWnd)
msStyle |= MB_APPLMODAL;
const wxSize sz = IsAlwaysMaximized() ? wxDefaultSize : size;
const wxSize sz = IsAlwaysMaximized() ? wxDefaultSize : size;
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
exflags |= WS_EX_LAYOUTRTL;
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
exflags |= WS_EX_LAYOUTRTL;
return MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags);
}
return MSWCreate(wxCanvasClassName, title, pos, sz, flags, exflags);
}
// all dialogs are popups
dlgTemplate->style |= WS_POPUP;
// all dialogs are popups
dlgTemplate->style |= WS_POPUP;
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
{
dlgTemplate->dwExtendedStyle |= WS_EX_LAYOUTRTL;
}
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
{
dlgTemplate->dwExtendedStyle |= WS_EX_LAYOUTRTL;
}
// force 3D-look if necessary, it looks impossibly ugly otherwise
if ( style & (wxRESIZE_BORDER | wxCAPTION) )
dlgTemplate->style |= DS_MODALFRAME;
// force 3D-look if necessary, it looks impossibly ugly otherwise
if ( style & (wxRESIZE_BORDER | wxCAPTION) )
dlgTemplate->style |= DS_MODALFRAME;
void wxWindowMSW::SetLayoutDirection(wxLayoutDirection dir)
{
void wxWindowMSW::SetLayoutDirection(wxLayoutDirection dir)
{
+#ifdef __WXWINCE__
+ wxUnusedVar(dir);
+#else
const HWND hwnd = GetHwnd();
wxCHECK_RET( hwnd, _T("layout direction must be set after window creation") );
const HWND hwnd = GetHwnd();
wxCHECK_RET( hwnd, _T("layout direction must be set after window creation") );
{
::SetWindowLong(hwnd, GWL_EXSTYLE, styleNew);
}
{
::SetWindowLong(hwnd, GWL_EXSTYLE, styleNew);
}
}
wxLayoutDirection wxWindowMSW::GetLayoutDirection() const
{
}
wxLayoutDirection wxWindowMSW::GetLayoutDirection() const
{
+#ifdef __WXWINCE__
+ return wxLayout_Default;
+#else
const HWND hwnd = GetHwnd();
wxCHECK_MSG( hwnd, wxLayout_Default, _T("invalid window") );
return ::GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_LAYOUTRTL
? wxLayout_RightToLeft
: wxLayout_LeftToRight;
const HWND hwnd = GetHwnd();
wxCHECK_MSG( hwnd, wxLayout_Default, _T("invalid window") );
return ::GetWindowLong(hwnd, GWL_EXSTYLE) & WS_EX_LAYOUTRTL
? wxLayout_RightToLeft
: wxLayout_LeftToRight;