10 #if (_WIN32_WINNT >= 0x0501) 11 #define DTBG_CLIPRECT 0x00000001 12 #define DTBG_DRAWSOLID 0x00000002 13 #define DTBG_OMITBORDER 0x00000004 14 #define DTBG_OMITCONTENT 0x00000008 15 #define DTBG_COMPUTINGREGION 0x00000010 16 #define DTBG_MIRRORDC 0x00000020 17 #define DTT_GRAYED 0x00000001 18 #define ETDT_DISABLE 0x00000001 19 #define ETDT_ENABLE 0x00000002 20 #define ETDT_USETABTEXTURE 0x00000004 21 #define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE) 22 #define STAP_ALLOW_NONCLIENT 0x00000001 23 #define STAP_ALLOW_CONTROLS 0x00000002 24 #define STAP_ALLOW_WEBCONTENT 0x00000004 25 #define HTTB_BACKGROUNDSEG 0x0000 26 #define HTTB_FIXEDBORDER 0x0002 27 #define HTTB_CAPTION 0x0004 28 #define HTTB_RESIZINGBORDER_LEFT 0x0010 29 #define HTTB_RESIZINGBORDER_TOP 0x0020 30 #define HTTB_RESIZINGBORDER_RIGHT 0x0040 31 #define HTTB_RESIZINGBORDER_BOTTOM 0x0080 32 #define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT|HTTB_RESIZINGBORDER_TOP|HTTB_RESIZINGBORDER_RIGHT|HTTB_RESIZINGBORDER_BOTTOM) 33 #define HTTB_SIZINGTEMPLATE 0x0100 34 #define HTTB_SYSTEMSIZINGMARGINS 0x0200 36 #define OTD_FORCE_RECT_SIZING 0x0001 37 #define OTD_NONCLIENT 0x0002 38 #define OTD_VALIDBITS (OTD_FORCE_RECT_SIZING | OTD_NONCLIENT) 43 typedef enum _BP_BUFFERFORMAT
51 typedef struct _BP_PAINTPARAMS
55 const RECT *prcExclude;
57 } BP_PAINTPARAMS, *PBP_PAINTPARAMS;
59 typedef enum PROPERTYORIGIN {
67 typedef enum THEMESIZE {
73 typedef struct _DTBGOPTS {
77 } DTBGOPTS, *PDTBGOPTS;
79 #define MAX_INTLIST_COUNT 10 81 typedef struct _INTLIST {
83 int iValues[MAX_INTLIST_COUNT];
HRESULT WINAPI GetThemePartSize(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz)
int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const DTBGOPTS *pOptions)
HRESULT WINAPI GetThemePropertyOrigin(HTHEME hTheme, int iPartId, int iStateId, int iPropId, PROPERTYORIGIN *pOrigin)
HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion)
static const RECT BP_BUFFERFORMAT
HRESULT WINAPI GetThemeEnumValue(HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
HRESULT WINAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect)
HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
BOOL WINAPI IsThemePartDefined(HTHEME hTheme, int iPartId, int iStateId)
HRESULT WINAPI GetThemePosition(HTHEME hTheme, int iPartId, int iStateId, int iPropId, POINT *pPoint)
DWORD WINAPI GetThemeAppProperties(void)
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, const RECT *pBoundingRect, RECT *pExtentRect)
HRESULT WINAPI GetThemeBool(HTHEME hTheme, int iPartId, int iStateId, int iPropId, BOOL *pfVal)
HRESULT WINAPI GetThemeFilename(HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszThemeFilename, int cchMaxBuffChars)
static HPAINTBUFFER(WINAPI *pBeginBufferedPaint)(HDC
HRESULT WINAPI GetThemeFont(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, LOGFONTW *pFont)
BOOL WINAPI IsThemeDialogTextureEnabled(HWND hwnd)
HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName, LPCWSTR pszPropertyName, LPWSTR pszValueBuff, int cchMaxValChars)
HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, DWORD dwOptions, const RECT *pRect, HRGN hrgn, POINT ptTest, WORD *pwHitTestCode)
HRESULT WINAPI GetThemeString(HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszBuff, int cchMaxBuffChars)
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
HRESULT WINAPI EnableTheming(BOOL fEnable)
BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
HBRUSH WINAPI GetThemeSysColorBrush(HTHEME hTheme, int iColorID)
HRESULT WINAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex)
HRESULT WINAPI GetThemeSysFont(HTHEME hTheme, int iFontID, LOGFONTW *plf)
BOOL WINAPI IsAppThemed(void)
void WINAPI SetThemeAppProperties(DWORD dwFlags)
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
HRESULT WINAPI GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRICW *ptm)
HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pContentRect, RECT *pExtentRect)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR pszClassList, DWORD flags)
HRESULT WINAPI EnableThemeDialogTexture(_In_ HWND hwnd, _In_ DWORD dwFlags)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
HRESULT WINAPI GetThemeMetric(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
COLORREF WINAPI GetThemeSysColor(HTHEME hTheme, int iColorID)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
HRESULT WINAPI GetThemeColor(HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
HRESULT WINAPI GetCurrentThemeName(LPWSTR pszThemeFileName, int dwMaxNameChars, LPWSTR pszColorBuff, int cchMaxColorChars, LPWSTR pszSizeBuff, int cchMaxSizeChars)
HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pBoundingRect, RECT *pContentRect)
HRESULT WINAPI GetThemeRect(HTHEME hTheme, int iPartId, int iStateId, int iPropId, RECT *pRect)
BOOL WINAPI IsThemeActive(void)
HRESULT WINAPI GetThemeSysString(HTHEME hTheme, int iStringID, LPWSTR pszStringBuff, int cchMaxStringChars)
#define BPBF_COMPATIBLEBITMAP
struct _MARGINS * PMARGINS
HRESULT WINAPI GetThemeIntList(HTHEME hTheme, int iPartId, int iStateId, int iPropId, INTLIST *pIntList)
BOOL WINAPI GetThemeSysBool(HTHEME hTheme, int iBoolID)
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
HRESULT WINAPI GetThemeInt(HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
HRESULT WINAPI DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect)