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
20#define DTT_TEXTCOLOR 0x00000001
21#define DTT_BORDERCOLOR 0x00000002
22#define DTT_SHADOWCOLOR 0x00000004
23#define DTT_SHADOWTYPE 0x00000008
24#define DTT_SHADOWOFFSET 0x00000010
25#define DTT_BORDERSIZE 0x00000020
26#define DTT_FONTPROP 0x00000040
27#define DTT_COLORPROP 0x00000080
28#define DTT_STATEID 0x00000100
29#define DTT_CALCRECT 0x00000200
30#define DTT_APPLYOVERLAY 0x00000400
31#define DTT_GLOWSIZE 0x00000800
32#define DTT_CALLBACK 0x00001000
33#define DTT_COMPOSITED 0x00002000
34#define DTT_VALIDBITS 0x00003fff
36#define ETDT_DISABLE 0x00000001
37#define ETDT_ENABLE 0x00000002
38#define ETDT_USETABTEXTURE 0x00000004
39#define ETDT_ENABLETAB (ETDT_ENABLE | ETDT_USETABTEXTURE)
40#define STAP_ALLOW_NONCLIENT 0x00000001
41#define STAP_ALLOW_CONTROLS 0x00000002
42#define STAP_ALLOW_WEBCONTENT 0x00000004
43#define HTTB_BACKGROUNDSEG 0x0000
44#define HTTB_FIXEDBORDER 0x0002
45#define HTTB_CAPTION 0x0004
46#define HTTB_RESIZINGBORDER_LEFT 0x0010
47#define HTTB_RESIZINGBORDER_TOP 0x0020
48#define HTTB_RESIZINGBORDER_RIGHT 0x0040
49#define HTTB_RESIZINGBORDER_BOTTOM 0x0080
50#define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT|HTTB_RESIZINGBORDER_TOP|HTTB_RESIZINGBORDER_RIGHT|HTTB_RESIZINGBORDER_BOTTOM)
51#define HTTB_SIZINGTEMPLATE 0x0100
52#define HTTB_SYSTEMSIZINGMARGINS 0x0200
54#define OTD_FORCE_RECT_SIZING 0x0001
55#define OTD_NONCLIENT 0x0002
56#define OTD_VALIDBITS (OTD_FORCE_RECT_SIZING | OTD_NONCLIENT)
62typedef enum _BP_BUFFERFORMAT
70typedef struct _BP_PAINTPARAMS
74 const RECT *prcExclude;
76} BP_PAINTPARAMS, *PBP_PAINTPARAMS;
78typedef enum PROPERTYORIGIN {
86typedef enum THEMESIZE {
92typedef struct _DTBGOPTS {
96} DTBGOPTS, *PDTBGOPTS;
98#define MAX_INTLIST_COUNT 10
100typedef struct _INTLIST {
102 int iValues[MAX_INTLIST_COUNT];
112typedef struct _DTTOPTS {
119 POINT ptShadowOffset;
126 DTT_CALLBACK_PROC pfnDrawTextCallback;
HRESULT WINAPI DrawThemeEdge(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pDestRect, UINT uEdge, UINT uFlags, RECT *pContentRect)
BOOL WINAPI IsThemeDialogTextureEnabled(HWND hwnd)
HRESULT WINAPI DrawThemeTextEx(_In_ HTHEME hTheme, _In_ HDC hdc, _In_ int iPartId, _In_ int iStateId, _In_ LPCWSTR pszText, _In_ int iCharCount, _In_ DWORD dwTextFlags, _Inout_ LPRECT pRect, _In_ const DTTOPTS *options)
HRESULT WINAPI DrawThemeIcon(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HIMAGELIST himl, int iImageIndex)
HRESULT WINAPI DrawThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const RECT *pClipRect)
BOOL WINAPI IsThemeBackgroundPartiallyTransparent(HTHEME hTheme, int iPartId, int iStateId)
HRESULT WINAPI GetThemePartSize(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, RECT *prc, THEMESIZE eSize, SIZE *psz)
HRESULT WINAPI GetThemeBackgroundExtent(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pContentRect, RECT *pExtentRect)
HRESULT WINAPI GetThemeBackgroundRegion(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, HRGN *pRegion)
HRESULT WINAPI DrawThemeText(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, DWORD dwTextFlags2, const RECT *pRect)
HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc)
HRESULT WINAPI GetThemeTextMetrics(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, TEXTMETRICW *ptm)
HRESULT WINAPI GetThemeTextExtent(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, LPCWSTR pszText, int iCharCount, DWORD dwTextFlags, const RECT *pBoundingRect, RECT *pExtentRect)
HRESULT WINAPI GetThemeBackgroundContentRect(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pBoundingRect, RECT *pContentRect)
HRESULT WINAPI DrawThemeBackgroundEx(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, const RECT *pRect, const DTBGOPTS *pOptions)
COLORREF WINAPI GetThemeSysColor(HTHEME hTheme, int iColorID)
HRESULT WINAPI GetThemeSysFont(HTHEME hTheme, int iFontID, LOGFONTW *plf)
HBRUSH WINAPI GetThemeSysColorBrush(HTHEME hTheme, int iColorID)
HRESULT WINAPI GetThemeSysInt(HTHEME hTheme, int iIntID, int *piValue)
HRESULT WINAPI GetThemeSysString(HTHEME hTheme, int iStringID, LPWSTR pszStringBuff, int cchMaxStringChars)
int WINAPI GetThemeSysSize(HTHEME hTheme, int iSizeID)
BOOL WINAPI GetThemeSysBool(HTHEME hTheme, int iBoolID)
HRESULT WINAPI GetThemeMetric(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, int *piVal)
HRESULT WINAPI GetThemePosition(HTHEME hTheme, int iPartId, int iStateId, int iPropId, POINT *pPoint)
HRESULT WINAPI GetThemeIntList(HTHEME hTheme, int iPartId, int iStateId, int iPropId, INTLIST *pIntList)
HRESULT WINAPI GetThemeRect(HTHEME hTheme, int iPartId, int iStateId, int iPropId, RECT *pRect)
HRESULT WINAPI GetThemeBool(HTHEME hTheme, int iPartId, int iStateId, int iPropId, BOOL *pfVal)
HRESULT WINAPI GetThemeFont(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, LOGFONTW *pFont)
HRESULT WINAPI GetThemeInt(HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
HRESULT WINAPI GetThemePropertyOrigin(HTHEME hTheme, int iPartId, int iStateId, int iPropId, PROPERTYORIGIN *pOrigin)
HRESULT WINAPI GetThemeMargins(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, RECT *prc, MARGINS *pMargins)
HRESULT WINAPI GetThemeEnumValue(HTHEME hTheme, int iPartId, int iStateId, int iPropId, int *piVal)
HRESULT WINAPI GetThemeFilename(HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszThemeFilename, int cchMaxBuffChars)
HRESULT WINAPI GetThemeString(HTHEME hTheme, int iPartId, int iStateId, int iPropId, LPWSTR pszBuff, int cchMaxBuffChars)
HRESULT WINAPI GetThemeColor(HTHEME hTheme, int iPartId, int iStateId, int iPropId, COLORREF *pColor)
HRESULT WINAPI GetThemeDocumentationProperty(LPCWSTR pszThemeName, LPCWSTR pszPropertyName, LPWSTR pszValueBuff, int cchMaxValChars)
void WINAPI SetThemeAppProperties(DWORD dwFlags)
HRESULT WINAPI EnableTheming(BOOL fEnable)
DWORD WINAPI GetThemeAppProperties(void)
HTHEME WINAPI OpenThemeDataEx(HWND hwnd, LPCWSTR pszClassList, DWORD flags)
HRESULT WINAPI GetCurrentThemeName(LPWSTR pszThemeFileName, int dwMaxNameChars, LPWSTR pszColorBuff, int cchMaxColorChars, LPWSTR pszSizeBuff, int cchMaxSizeChars)
HTHEME WINAPI OpenThemeData(HWND hwnd, LPCWSTR classlist)
BOOL WINAPI IsThemePartDefined(HTHEME hTheme, int iPartId, int iStateId)
HTHEME WINAPI GetWindowTheme(HWND hwnd)
BOOL WINAPI IsThemeActive(void)
HRESULT WINAPI HitTestThemeBackground(HTHEME hTheme, HDC hdc, int iPartId, int iStateId, DWORD dwOptions, const RECT *pRect, HRGN hrgn, POINT ptTest, WORD *pwHitTestCode)
HRESULT WINAPI CloseThemeData(HTHEME hTheme)
BOOL WINAPI IsAppThemed(void)
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
PSDBQUERYRESULT_VISTA PVOID DWORD * dwSize
static const RECT BP_BUFFERFORMAT
static HTHEME(WINAPI *pOpenThemeDataEx)(HWND
static HPAINTBUFFER(WINAPI *pBeginBufferedPaint)(HDC
#define BPBF_COMPATIBLEBITMAP
HRESULT WINAPI EnableThemeDialogTexture(_In_ HWND hwnd, _In_ DWORD dwFlags)
HRESULT WINAPI SetWindowTheme(_In_ HWND hwnd, _In_ LPCWSTR pszSubAppName, _In_ LPCWSTR pszSubIdList)
struct _MARGINS * PMARGINS
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags