]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/msw/uxtheme.h
made wxTree/ListCtrl::HitTest() const
[wxWidgets.git] / include / wx / msw / uxtheme.h
index 7bc6d0ce720e5e4d53329c6fba3c4540f5ab73ca..378a26ed98abb19221d911f615c6b44b759ca046 100644 (file)
@@ -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; }