diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-04 23:23:45 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-04 23:23:45 +0000 |
commit | 15855fa84a09fd1fd486d357c38db0f2bd181e74 (patch) | |
tree | c98d1ae74abca41c776522059343eda13a7e0a31 /plugins/!NotAdopted/HistoryStats/themeapi.h | |
parent | 819f8efabea6b0d7d971f9e6e4b21bbc18838874 (diff) |
HistoryStats compiles ok now
git-svn-id: http://svn.miranda-ng.org/main/trunk@8399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/!NotAdopted/HistoryStats/themeapi.h')
-rw-r--r-- | plugins/!NotAdopted/HistoryStats/themeapi.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/!NotAdopted/HistoryStats/themeapi.h b/plugins/!NotAdopted/HistoryStats/themeapi.h deleted file mode 100644 index fe3444a604..0000000000 --- a/plugins/!NotAdopted/HistoryStats/themeapi.h +++ /dev/null @@ -1,50 +0,0 @@ -#if !defined(HISTORYSTATS_GUARD_THEMEAPI_H)
-#define HISTORYSTATS_GUARD_THEMEAPI_H
-
-#include "_globals.h"
-#include "_consts.h"
-
-#include <uxtheme.h>
-#include <tmschema.h>
-
-#define HISTORYSTATS_THEMEAPI_MINIMAL
-
-class ThemeAPI
- : private pattern::NotInstantiable<ThemeAPI>
-{
-public:
- typedef HRESULT (WINAPI *fnCloseThemeData )(HTHEME hTheme);
- typedef HRESULT (WINAPI *fnDrawThemeBackground )(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect);
- typedef BOOL (WINAPI *fnIsAppThemed )(VOID);
- typedef BOOL (WINAPI *fnIsThemeActive )(VOID);
- typedef HTHEME (WINAPI *fnOpenThemeData )(HWND hwnd, LPCWSTR pszClassList);
-#if !defined(HISTORYSTATS_THEMEAPI_MINIMAL)
- typedef HRESULT (WINAPI *fnDrawThemeIcon )(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex);
- typedef HRESULT (WINAPI *fnEnableThemeDialogTexture)(HWND hwnd, DWORD dwFlags);
- typedef HRESULT (WINAPI *fnGetThemePartSize )(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz);
-#endif
-
-public:
- static fnCloseThemeData CloseThemeData;
- static fnDrawThemeBackground DrawThemeBackground;
- static fnIsAppThemed IsAppThemed;
- static fnIsThemeActive IsThemeActive;
- static fnOpenThemeData OpenThemeData;
-#if !defined(HISTORYSTATS_THEMEAPI_MINIMAL)
- static fnDrawThemeIcon DrawThemeIcon;
- static fnEnableThemeDialogTexture EnableThemeDialogTexture;
- static fnGetThemePartSize GetThemePartSize;
-#endif
-
-private:
- static const mu_text* m_szThemesDll;
- static HMODULE m_hThemesDll;
- static bool m_bUseTheme;
-
-public:
- static void init();
- static void uninit();
- static bool useTheme() { return m_bUseTheme && IsThemeActive() && IsAppThemed(); }
-};
-
-#endif // HISTORYSTATS_GUARD_THEMEAPI_H
\ No newline at end of file |