diff --git a/src/msw/window.cpp b/src/msw/window.cpp index c3c711cb98..67d6be5c16 100644 --- a/src/msw/window.cpp +++ b/src/msw/window.cpp @@ -4763,7 +4763,7 @@ wxColour wxWindowMSW::MSWGetThemeColour(const wchar_t *themeName, wxFAIL_MSG(wxT("unsupported theme colour")); }; - wxUxThemeHandle hTheme(this, themeName); + wxUxThemeHandle hTheme((wxWindow *)this, themeName); COLORREF col; HRESULT hr = theme->GetThemeColor (