X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6f2a8911e509fd9e61f881cc881a97f5aa05ae8..8b6cf9bf10a43343734d1bb22f2fae3ade2f4a67:/src/msw/combo.cpp?ds=sidebyside diff --git a/src/msw/combo.cpp b/src/msw/combo.cpp index 04e430c428..72b053da45 100644 --- a/src/msw/combo.cpp +++ b/src/msw/combo.cpp @@ -41,6 +41,7 @@ #if wxUSE_UXTHEME #include "wx/msw/uxtheme.h" #endif +#include "wx/msw/dc.h" // Change to #if 1 to include tmschema.h for easier testing of theme // parameters. @@ -479,7 +480,8 @@ void wxComboCtrl::OnPaintEvent( wxPaintEvent& WXUNUSED(event) ) #if wxUSE_UXTHEME const bool isEnabled = IsEnabled(); - HDC hDc = GetHdcOf(dc); + wxMSWDCImpl *impl = (wxMSWDCImpl*) dc.GetImpl(); + HDC hDc = GetHdcOf(*impl); HWND hWnd = GetHwndOf(this); wxUxThemeEngine* theme = NULL;