X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dedba2a11f68439a2d438c72e4baa8438fe713b2..9ed8b5a7b2e41ecb07d2dab32bac32eb7b771fd3:/include/wx/msw/uxtheme.h diff --git a/include/wx/msw/uxtheme.h b/include/wx/msw/uxtheme.h index 7bc6d0ce72..fa404596ff 100644 --- a/include/wx/msw/uxtheme.h +++ b/include/wx/msw/uxtheme.h @@ -14,7 +14,7 @@ #include "wx/defs.h" -#include "wx/msw/wrapwin.h" +#include "wx/msw/private.h" // we use GetHwndOf() #include "wx/msw/uxthemep.h" typedef HTHEME (__stdcall *PFNWXUOPENTHEMEDATA)(HWND, const wchar_t *); @@ -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; }