Based on the class CVisualStylesXP by David Yuheng Zhao.
|
Public Member Functions |
| | Win32VisualStylesWrapper () |
| | ~Win32VisualStylesWrapper () |
Static Public Member Functions |
| static HTHEME | OpenThemeData (HWND hwnd, LPCWSTR pszClassList) |
| static HRESULT | CloseThemeData (HTHEME hTheme) |
| static HRESULT | DrawThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect) |
| static HRESULT | DrawThemeText (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect) |
| static HRESULT | GetThemeBackgroundContentRect (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pBoundingRect, RECT *pContentRect) |
| static HRESULT | GetThemeBackgroundExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pContentRect, RECT *pExtentRect) |
| static HRESULT | GetThemePartSize (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *pRect, THEMESIZE eSize, SIZE *psz) |
| static HRESULT | GetThemeTextExtent (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, const RECT *pBoundingRect, RECT *pExtentRect) |
| static HRESULT | GetThemeTextMetrics (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRIC *ptm) |
| static HRESULT | GetThemeBackgroundRegion (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion) |
| static HRESULT | HitTestThemeBackground (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, DWORD dwOptions, const RECT *pRect, HRGN hrgn, POINT ptTest, WORD *pwHitTestCode) |
| static HRESULT | DrawThemeEdge (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect) |
| static HRESULT | DrawThemeIcon (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex) |
| static BOOL | IsThemePartDefined (HTHEME hTheme, int iPartId, int iStateId) |
| static BOOL | IsThemeBackgroundPartiallyTransparent (HTHEME hTheme, int iPartId, int iStateId) |
| static HRESULT | GetThemeColor (HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor) |
| static HRESULT | GetThemeMetric (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal) |
| static HRESULT | GetThemeString (HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszBuff, int cchMaxBuffChars) |
| static HRESULT | GetThemeBool (HTHEME hTheme, int iPartId, int iStateId, int iPropId, BOOL *pfVal) |
| static HRESULT | GetThemeInt (HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal) |
| static HRESULT | GetThemeEnumValue (HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal) |
| static HRESULT | GetThemePosition (HTHEME hTheme, int iPartId, int iStateId, int iPropId, POINT *pPoint) |
| static HRESULT | GetThemeFont (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, LOGFONT *pFont) |
| static HRESULT | GetThemeRect (HTHEME hTheme, int iPartId, int iStateId, int iPropId, RECT *pRect) |
| static HRESULT | GetThemeMargins (HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins) |
| static HRESULT | GetThemeIntList (HTHEME hTheme, int iPartId, int iStateId, int iPropId, INTLIST *pIntList) |
| static HRESULT | GetThemePropertyOrigin (HTHEME hTheme, int iPartId, int iStateId, int iPropId, PROPERTYORIGIN *pOrigin) |
| static HRESULT | SetWindowTheme (HWND hwnd, LPCWSTR pszSubAppName, LPCWSTR pszSubIdList) |
| static HRESULT | GetThemeFilename (HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszThemeFileName, int cchMaxBuffChars) |
| static COLORREF | GetThemeSysColor (HTHEME hTheme, int iColorId) |
| static HBRUSH | GetThemeSysColorBrush (HTHEME hTheme, int iColorId) |
| static BOOL | GetThemeSysBool (HTHEME hTheme, int iBoolId) |
| static int | GetThemeSysSize (HTHEME hTheme, int iSizeId) |
| static HRESULT | GetThemeSysFont (HTHEME hTheme, int iFontId, LOGFONT *plf) |
| static HRESULT | GetThemeSysString (HTHEME hTheme, int iStringId, LPWSTR pszStringBuff, int cchMaxStringChars) |
| static HRESULT | GetThemeSysInt (HTHEME hTheme, int iIntId, int *piValue) |
| static BOOL | IsThemeActive () |
| static BOOL | IsAppThemed () |
| static HTHEME | GetWindowTheme (HWND hwnd) |
| static HRESULT | EnableThemeDialogTexture (HWND hwnd, DWORD dwFlags) |
| static BOOL | IsThemeDialogTextureEnabled (HWND hwnd) |
| static DWORD | GetThemeAppProperties () |
| static void | SetThemeAppProperties (DWORD dwFlags) |
| static HRESULT | GetCurrentThemeName (LPWSTR pszThemeFileName, int cchMaxNameChars, LPWSTR pszColorBuff, int cchMaxColorChars, LPWSTR pszSizeBuff, int cchMaxSizeChars) |
| static HRESULT | GetThemeDocumentationProperty (LPCWSTR pszThemeName, LPCWSTR pszPropertyName, LPWSTR pszValueBuff, int cchMaxValChars) |
| static HRESULT | DrawThemeParentBackground (HWND hwnd, HDC hdc, RECT *prc) |
| static HRESULT | EnableTheming (BOOL fEnable) |
Static Protected Attributes |
| static Win32VisualStylesWrapper | Instance |
Classes |
| struct | ThemeFuncs |
Based on the class CVisualStylesXP by David Yuheng Zhao.
No warrantee of any kind, express or implied, is included with this software; use at your own risk, responsibility for damages (if any) to anyone resulting from the use of this software rests entirely with the user.
Partly based on the _ThemeHelper struct in MFC7.0 source code (winctrl3.cpp), and the difference is that this implementation wraps the full set of visual style APIs from the platform SDK August 2001