windows-nt/Source/XPSP1/NT/shell/themes/uxtheme/info.h

42 lines
1.9 KiB
C
Raw Normal View History

2020-09-26 03:20:57 -05: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);
void AddPropFlags(HWND hwnd, DWORD dwNewFlags);
//---------------------------------------------------------------------------
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
//---------------------------------------------------------------------------