]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/renderer.cpp
Compilation fix for unix builds with cygwin
[wxWidgets.git] / src / msw / renderer.cpp
index 0b54ae2c1fc23cdf34dcb2d2eb4f5d7e4b86acdf..44cef6df14c893a3357f20c9594fc1521cdf1ac5 100644 (file)
@@ -126,6 +126,10 @@ wxRendererNative& wxRendererMSW::Get()
     return s_rendererMSW;
 }
 
     return s_rendererMSW;
 }
 
+#if defined(__WXWINCE__) && !defined(DFCS_FLAT)
+#define DFCS_FLAT 0
+#endif
+
 void
 wxRendererMSW::DrawComboBoxDropButton(wxWindow * WXUNUSED(win),
                                       wxDC& dc,
 void
 wxRendererMSW::DrawComboBoxDropButton(wxWindow * WXUNUSED(win),
                                       wxDC& dc,
@@ -192,7 +196,7 @@ wxRendererXP::DrawComboBoxDropButton(wxWindow * win,
         wxUxThemeEngine::Get()->DrawThemeBackground
                                 (
                                     hTheme,
         wxUxThemeEngine::Get()->DrawThemeBackground
                                 (
                                     hTheme,
-                                    dc.GetHDC(),
+                                    (HDC) dc.GetHDC(),
                                     CP_DROPDOWNBUTTON,
                                     state,
                                     &r,
                                     CP_DROPDOWNBUTTON,
                                     state,
                                     &r,
@@ -240,7 +244,7 @@ wxRendererXP::DrawSplitterSash(wxWindow *win,
 {
     if ( !win->HasFlag(wxSP_NO_XP_THEME) )
     {
 {
     if ( !win->HasFlag(wxSP_NO_XP_THEME) )
     {
-        wxUxThemeHandle hTheme(win, L"WINDOW");
+        wxUxThemeHandle hTheme(win, L"REBAR");
         if ( hTheme )
         {
             RECT rect;
         if ( hTheme )
         {
             RECT rect;
@@ -261,8 +265,8 @@ wxRendererXP::DrawSplitterSash(wxWindow *win,
 
             wxUxThemeEngine::Get()->DrawThemeBackground
                                     (
 
             wxUxThemeEngine::Get()->DrawThemeBackground
                                     (
-                                        (WXHTHEME)hTheme,
-                                        dc.GetHDC(),
+                                        hTheme,
+                                        (HDC) dc.GetHDC(),
                                         29, // WP_DIALOG: dlg background
                                         0, // no particular state
                                         &rect,
                                         29, // WP_DIALOG: dlg background
                                         0, // no particular state
                                         &rect,