X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92199f4cb8bc24ee2f4844cad9f9d5776c35d098..e143fb636d50d5802dcc8c7c2e9e8e2944afa467:/include/wx/msw/uxtheme.h diff --git a/include/wx/msw/uxtheme.h b/include/wx/msw/uxtheme.h index c21cd3912d..6424fc6118 100644 --- a/include/wx/msw/uxtheme.h +++ b/include/wx/msw/uxtheme.h @@ -12,13 +12,9 @@ #ifndef _WX_UXTHEME_H_ #define _WX_UXTHEME_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma interface "uxtheme.h" -#endif - #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 *); @@ -76,14 +72,14 @@ typedef HRESULT (__stdcall *PFNWXUENABLETHEMING)(BOOL); // we always define this class, even if wxUSE_UXTHEME == 0, but we just make it // empty in this case -- this allows to use it elsewhere without any #ifdefs #if wxUSE_UXTHEME - #include "wx/dynload.h" + #include "wx/dynlib.h" #define wxUX_THEME_DECLARE(type, func) type func; #else #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 @@ -172,7 +168,7 @@ private: friend class wxUxThemeModule; #endif // wxUSE_UXTHEME - DECLARE_NO_COPY_CLASS(wxUxThemeEngine) + wxDECLARE_NO_COPY_CLASS(wxUxThemeEngine); }; #if wxUSE_UXTHEME @@ -206,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; } @@ -228,7 +223,7 @@ public: private: HTHEME m_hTheme; - DECLARE_NO_COPY_CLASS(wxUxThemeHandle) + wxDECLARE_NO_COPY_CLASS(wxUxThemeHandle); }; #endif // _WX_UXTHEME_H_