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.cpp | |
| 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.cpp')
| -rw-r--r-- | plugins/!NotAdopted/HistoryStats/themeapi.cpp | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/plugins/!NotAdopted/HistoryStats/themeapi.cpp b/plugins/!NotAdopted/HistoryStats/themeapi.cpp deleted file mode 100644 index a15067bc66..0000000000 --- a/plugins/!NotAdopted/HistoryStats/themeapi.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include "_globals.h"
-#include "themeapi.h"
-
-/*
- * ThemeAPI
- */
-
-const mu_text* ThemeAPI::m_szThemesDll = muT("uxtheme.dll");
-HMODULE ThemeAPI::m_hThemesDll = NULL;
-bool ThemeAPI::m_bUseTheme = false;
-
-ThemeAPI::fnCloseThemeData ThemeAPI::CloseThemeData = NULL;
-ThemeAPI::fnDrawThemeBackground ThemeAPI::DrawThemeBackground = NULL;
-ThemeAPI::fnIsAppThemed ThemeAPI::IsAppThemed = NULL;
-ThemeAPI::fnIsThemeActive ThemeAPI::IsThemeActive = NULL;
-ThemeAPI::fnOpenThemeData ThemeAPI::OpenThemeData = NULL;
-#if !defined(HISTORYSTATS_THEMEAPI_MINIMAL)
-ThemeAPI::fnDrawThemeIcon ThemeAPI::DrawThemeIcon = NULL;
-ThemeAPI::fnEnableThemeDialogTexture ThemeAPI::EnableThemeDialogTexture = NULL;
-ThemeAPI::fnGetThemePartSize ThemeAPI::GetThemePartSize = NULL;
-#endif
-
-void ThemeAPI::init()
-{
- m_hThemesDll = LoadLibrary(m_szThemesDll);
-
- if (m_hThemesDll)
- {
- CloseThemeData = reinterpret_cast<fnCloseThemeData >(GetProcAddress(m_hThemesDll, muA("CloseThemeData") ));
- DrawThemeBackground = reinterpret_cast<fnDrawThemeBackground >(GetProcAddress(m_hThemesDll, muA("DrawThemeBackground") ));
- IsAppThemed = reinterpret_cast<fnIsAppThemed >(GetProcAddress(m_hThemesDll, muA("IsAppThemed") ));
- IsThemeActive = reinterpret_cast<fnIsThemeActive >(GetProcAddress(m_hThemesDll, muA("IsThemeActive") ));
- OpenThemeData = reinterpret_cast<fnOpenThemeData >(GetProcAddress(m_hThemesDll, muA("OpenThemeData") ));
-#if !defined(HISTORYSTATS_THEMEAPI_MINIMAL)
- DrawThemeIcon = reinterpret_cast<fnDrawThemeIcon >(GetProcAddress(m_hThemesDll, muA("DrawThemeIcon") ));
- EnableThemeDialogTexture = reinterpret_cast<fnEnableThemeDialogTexture>(GetProcAddress(m_hThemesDll, muA("EnableThemeDialogTexture")));
- GetThemePartSize = reinterpret_cast<fnGetThemePartSize >(GetProcAddress(m_hThemesDll, muA("GetThemePartSize") ));
-#endif
-
- m_bUseTheme = IsThemeActive && IsAppThemed;
- }
-}
-
-void ThemeAPI::uninit()
-{
- if (m_hThemesDll)
- {
- FreeLibrary(m_hThemesDll);
-
- m_hThemesDll = NULL;
- m_bUseTheme = false;
- }
-}
\ No newline at end of file |
