diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-29 06:49:54 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2015-04-29 06:49:54 +0000 |
commit | 89113840fb4160af43bbc6cc22b1b13c5118259d (patch) | |
tree | 8479fd75ee6835a92c42d040610a10e863518f2c /plugins/ExternalAPI/m_xpTheme.h | |
parent | 1cc221fa6c8ef6b2e3010f700053391cf024ca07 (diff) |
m_* headers moved to ExternalAPI folder
git-svn-id: http://svn.miranda-ng.org/main/trunk@13240 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ExternalAPI/m_xpTheme.h')
-rw-r--r-- | plugins/ExternalAPI/m_xpTheme.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_xpTheme.h b/plugins/ExternalAPI/m_xpTheme.h new file mode 100644 index 0000000000..90925470f4 --- /dev/null +++ b/plugins/ExternalAPI/m_xpTheme.h @@ -0,0 +1,19 @@ +/* Wrapper for XP theme */
+typedef void * XPTHANDLE;
+typedef HANDLE HTHEME;
+
+XPTHANDLE xpt_AddThemeHandle(HWND hwnd, LPCWSTR className);
+void xpt_FreeThemeHandle(XPTHANDLE xptHandle);
+void xpt_FreeThemeForWindow(HWND hwnd);
+BOOL xpt_IsValidHandle(XPTHANDLE xptHandle);
+HRESULT xpt_DrawThemeBackground(XPTHANDLE xptHandle, HDC hdc, int type, int state, const RECT * sizeRect, const RECT * clipRect);
+HRESULT xpt_DrawThemeParentBackground(HWND hWnd, HDC hdc, const RECT * sizeRect);
+HRESULT xpt_DrawThemeText(XPTHANDLE xptHandle, HDC hdc, int type, int state, LPCTSTR lpStr, int len, DWORD flag1, DWORD flag2, const RECT * textRect);
+BOOL xpt_IsThemeBackgroundPartiallyTransparent(XPTHANDLE xptHandle, int type, int state);
+HRESULT xpt_DrawTheme(XPTHANDLE xptHandle, HWND hwnd, HDC hdc, int type, int state, const RECT *sizeRect, const RECT * clipRect);
+BOOL xpt_IsThemed(XPTHANDLE xptHandle);
+BOOL xpt_EnableThemeDialogTexture(HWND hwnd, DWORD flags);
+
+// next will be called only from one place
+void XPThemesUnloadModule();
+void xpt_OnWM_THEMECHANGED();
|