]> git.saurik.com Git - wxWidgets.git/commitdiff
WinCE build fixes.
authorWłodzimierz Skiba <abx@abx.art.pl>
Tue, 5 Sep 2006 19:23:15 +0000 (19:23 +0000)
committerWłodzimierz Skiba <abx@abx.art.pl>
Tue, 5 Sep 2006 19:23:15 +0000 (19:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/msgdlg.cpp
src/msw/toplevel.cpp
src/msw/window.cpp

index c8aaa8ef73156daa84a50c075b4cba461f4fd08d..d19261705ed730d96042b655c1bbce0f06e51375 100644 (file)
@@ -97,8 +97,10 @@ 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;
index 214fbc7718e000b90a8bc37b88724dcdc1bbfd39..b2af8b24839930d29c9b5df8de32ac4dae1c20af 100644 (file)
@@ -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;
index 2ebf6bfbc7e5f630776b87454ebea13a35168d35..b68d59085d548d81ee6710ac0eaa67db8c3155f8 100644 (file)
@@ -1024,6 +1024,9 @@ bool wxWindowMSW::ScrollPages(int pages)
 
 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") );
 
@@ -1049,16 +1052,21 @@ void wxWindowMSW::SetLayoutDirection(wxLayoutDirection dir)
     {
         ::SetWindowLong(hwnd, GWL_EXSTYLE, styleNew);
     }
+#endif
 }
 
 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;
+#endif
 }
 
 wxCoord