X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dedba2a11f68439a2d438c72e4baa8438fe713b2..be0e5d699f3681f291340f1e4d107a2348b40136:/include/wx/msw/uxtheme.h diff --git a/include/wx/msw/uxtheme.h b/include/wx/msw/uxtheme.h index 7bc6d0ce72..378a26ed98 100644 --- a/include/wx/msw/uxtheme.h +++ b/include/wx/msw/uxtheme.h @@ -202,13 +202,12 @@ private: class wxUxThemeHandle { public: - wxUxThemeHandle(wxWindow *win, const wchar_t *classes) + wxUxThemeHandle(const wxWindow *win, const wchar_t *classes) { wxUxThemeEngine *engine = wxUxThemeEngine::Get(); - m_hTheme = - engine ? (HTHEME)engine->OpenThemeData((HWND) win->GetHWND(), classes) - : NULL; + m_hTheme = engine ? (HTHEME)engine->OpenThemeData(GetHwndOf(win), classes) + : NULL; } operator HTHEME() const { return m_hTheme; }