Windows-Server-2003/shell/themes/uxtheme/info.h

41 lines
1.9 KiB
C
Raw Permalink Normal View History

2024-08-04 01:28:15 +02:00
//---------------------------------------------------------------------------
// Info.h - implements the information services of the CRenderObj object
//---------------------------------------------------------------------------
#ifndef _INFO_H
#define _INFO_H
#include <loader.h>
//---------------------------------------------------------------------------
class CRenderObj; // forward
//---------------------------------------------------------------------------
HRESULT GetHwndThemeFile(HWND hwnd, LPCWSTR pszClassIdList,
CUxThemeFile **ppThemeFile);
HRESULT MatchThemeClass(LPCTSTR pszAppName, LPCTSTR pszClassId,
CUxThemeFile *pThemeFile, int *piOffset, int *piClassNameOffset);
HRESULT MatchThemeClassList(HWND hwnd, LPCTSTR pstClassIdList,
CUxThemeFile *pThemeFile, int *piOffset, int *piClassNameOffset);
HTHEME _OpenThemeDataFromFile(HTHEMEFILE hLoadedThemeFile, HWND hwnd, LPCWSTR pszClassList, DWORD dwFlags);
HTHEME _OpenThemeData(HWND hwnd, LPCWSTR pszClassIdList, DWORD dwFlags);
HRESULT _ApplyTheme(CUxThemeFile *pThemeFile, DWORD dwApplyFlags,
OPTIONAL LPCWSTR pszTargetApp, OPTIONAL HWND hwndTarget);
HRESULT _OpenThemeFileFromData(CRenderObj *pRender, HTHEMEFILE *phThemeFile);
void ClearExStyleBits(HWND hwnd);
//---------------------------------------------------------------------------
BOOL EnumProcessWindows(WNDENUMPROC lpEnumFunc, LPARAM lParam);
void WindowDump(LPCWSTR pszWhere);
//---------------------------------------------------------------------------
inline THEMEMETRICS *GetThemeMetricsPtr(CUxThemeFile *pThemeFile)
{
THEMEHDR *hdr = (THEMEHDR *)(pThemeFile->_pbThemeData);
return (THEMEMETRICS *)(pThemeFile->_pbThemeData + hdr->iSysMetricsOffset + ENTRYHDR_SIZE);
}
//---------------------------------------------------------------------------
#endif // _INFO_H
//---------------------------------------------------------------------------