#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 *);
#define wxUX_THEME_DECLARE(type, func) type func(...) { return 0; }
#endif
-class WXDLLEXPORT wxUxThemeEngine
+class WXDLLIMPEXP_CORE wxUxThemeEngine
{
public:
// get the theme engine or NULL if themes are not available
friend class wxUxThemeModule;
#endif // wxUSE_UXTHEME
- DECLARE_NO_COPY_CLASS(wxUxThemeEngine)
+ wxDECLARE_NO_COPY_CLASS(wxUxThemeEngine);
};
#if wxUSE_UXTHEME
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; }
private:
HTHEME m_hTheme;
- DECLARE_NO_COPY_CLASS(wxUxThemeHandle)
+ wxDECLARE_NO_COPY_CLASS(wxUxThemeHandle);
};
#endif // _WX_UXTHEME_H_