]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/renderer.cpp
Themed backgrounds for flat generic buttons
[wxWidgets.git] / src / msw / renderer.cpp
index 610e58ef1bf6f5e3b81a59d323ad4ba0355cbc47..3f0c50eb131922a222f6075c6904e3ea705a013e 100644 (file)
@@ -196,7 +196,7 @@ wxRendererXP::DrawComboBoxDropButton(wxWindow * win,
         wxUxThemeEngine::Get()->DrawThemeBackground
                                 (
                                     hTheme,
-                                    dc.GetHDC(),
+                                    (HDC) dc.GetHDC(),
                                     CP_DROPDOWNBUTTON,
                                     state,
                                     &r,
@@ -265,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,