X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7cf3223a80adede7cf8524d29b9b5fab8621eff4..6b5e5f48053ab30f80367a2f5b32834260080ab6:/src/msw/renderer.cpp?ds=sidebyside diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 0b54ae2c1f..44cef6df14 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -126,6 +126,10 @@ wxRendererNative& wxRendererMSW::Get() return s_rendererMSW; } +#if defined(__WXWINCE__) && !defined(DFCS_FLAT) +#define DFCS_FLAT 0 +#endif + void wxRendererMSW::DrawComboBoxDropButton(wxWindow * WXUNUSED(win), wxDC& dc, @@ -192,7 +196,7 @@ wxRendererXP::DrawComboBoxDropButton(wxWindow * win, wxUxThemeEngine::Get()->DrawThemeBackground ( hTheme, - dc.GetHDC(), + (HDC) dc.GetHDC(), CP_DROPDOWNBUTTON, state, &r, @@ -240,7 +244,7 @@ wxRendererXP::DrawSplitterSash(wxWindow *win, { if ( !win->HasFlag(wxSP_NO_XP_THEME) ) { - wxUxThemeHandle hTheme(win, L"WINDOW"); + wxUxThemeHandle hTheme(win, L"REBAR"); if ( hTheme ) { RECT rect; @@ -261,8 +265,8 @@ wxRendererXP::DrawSplitterSash(wxWindow *win, wxUxThemeEngine::Get()->DrawThemeBackground ( - (WXHTHEME)hTheme, - dc.GetHDC(), + hTheme, + (HDC) dc.GetHDC(), 29, // WP_DIALOG: dlg background 0, // no particular state &rect,