Theme
Code:
Enumeration ; PROPERTYORIGIN
#PO_STATE
#PO_PART
#PO_CLASS
#PO_GLOBAL
#PO_NOTFOUND
EndEnumeration
Enumeration ; THEMESIZE
#TS_MIN
#TS_TRUE
#TS_DRAW
EndEnumeration
Structure DTBGOPTS
dwSize.l
dwFlags.l
rcClip.rect
EndStructure
#OTD_FORCE_RECT_SIZING = $00000001
#OTD_NONCLIENT = $00000002
#OTD_VALIDBITS = (#OTD_FORCE_RECT_SIZING|#OTD_NONCLIENT)
#DTBG_CLIPRECT = $00000001
#DTBG_DRAWSOLID = $00000002
#DTBG_OMITBORDER = $00000004
#DTBG_OMITCONTENT = $00000008
#DTBG_COMPUTINGREGION = $00000010
#DTBG_MIRRORDC = $00000020
#DTBG_NOMIRROR = $00000040
#DTBG_VALIDBITS = (#DTBG_CLIPRECT|#DTBG_DRAWSOLID|#DTBG_OMITBORDER|#DTBG_OMITCONTENT|#DTBG_COMPUTINGREGION|#DTBG_MIRRORDC|#DTBG_NOMIRROR)
#DTT_GRAYED = $1
#HTTB_BACKGROUNDSEG = $0000
#HTTB_FIXEDBORDER = $0002
#HTTB_CAPTION = $0004
#HTTB_RESIZINGBORDER_LEFT = $0010
#HTTB_RESIZINGBORDER_TOP = $0020
#HTTB_RESIZINGBORDER_RIGHT = $0040
#HTTB_RESIZINGBORDER_BOTTOM = $0080
#HTTB_RESIZINGBORDER = (#HTTB_RESIZINGBORDER_LEFT|#HTTB_RESIZINGBORDER_TOP|#HTTB_RESIZINGBORDER_RIGHT|#HTTB_RESIZINGBORDER_BOTTOM)
#HTTB_SIZINGTEMPLATE = $0100
#HTTB_SYSTEMSIZINGMARGINS = $0200
#ETDT_DISABLE = $00000001
#ETDT_ENABLE = $00000002
#ETDT_USETABTEXTURE = $00000004
#ETDT_ENABLETAB = (#ETDT_ENABLE|#ETDT_USETABTEXTURE)
#ETDT_USEAEROWIZARDTABTEXTURE = $00000008
#ETDT_ENABLEAEROWIZARDTAB = (#ETDT_ENABLE|#ETDT_USEAEROWIZARDTABTEXTURE)
#ETDT_VALIDBITS = (#ETDT_DISABLE|#ETDT_ENABLE|#ETDT_USETABTEXTURE|#ETDT_USEAEROWIZARDTABTEXTURE)
#STAP_ALLOW_NONCLIENT = (1<<0)
#STAP_ALLOW_CONTROLS = (1<<1)
#STAP_ALLOW_WEBCONTENT = (1<<2)
#STAP_VALIDBITS = (#STAP_ALLOW_NONCLIENT|#STAP_ALLOW_CONTROLS|#STAP_ALLOW_WEBCONTENT)
#SZ_THDOCPROP_DISPLAYNAME = "DisplayName"
#SZ_THDOCPROP_CANONICALNAME = "ThemeName"
#SZ_THDOCPROP_TOOLTIP = "ToolTip"
#SZ_THDOCPROP_AUTHOR = "author"
#WTNCA_NODRAWCAPTION = $00000001
#WTNCA_NODRAWICON = $00000002
#WTNCA_NOSYSMENU = $00000004
#WTNCA_NOMIRRORHELP = $00000008
#WTNCA_VALIDBITS = (#WTNCA_NODRAWCAPTION|#WTNCA_NODRAWICON|#WTNCA_NOSYSMENU|#WTNCA_NOMIRRORHELP)
#DTPB_WINDOWDC = $00000001
#DTPB_USECTLCOLORSTATIC = $00000002
#DTPB_USEERASEBKGND = $00000004
#GBF_DIRECT = $00000001
#GBF_COPY = $00000002
#GBF_VALIDBITS = (#GBF_DIRECT|#GBF_COPY)
#BPBF_TOPDOWNDIB = 2
#BPBF_COMPOSITED = #BPBF_TOPDOWNDIB
#BPPF_ERASE = $0001
#BPPF_NOCLIP = $0002
#BPPF_NONCLIENT = $0004
#MAX_INTLIST_COUNT = 402
Structure INTLIST
iValueCount.l
iValues.l[#MAX_INTLIST_COUNT]
EndStructure
Structure MARGINS
cxLeftWidth.l
cxRightWidth.l
cyTopHeight.l
cyBottomHeight.l
EndStructure
Import "UxTheme.lib"
CloseThemeData(hTheme)
DrawThemeBackground(hTheme, hDC, iPartId, iStateId, pRect, *pClipRect)
DrawThemeBackgroundEx(hTheme, hDC, iPartId, iStateId, pRect, *pOptions.DTBGOPTS)
DrawThemeEdge(hTheme, hDC, iPartId, iStateId, *pDestRect.RECT, uEdge, uFlags, *pContentRect.RECT)
DrawThemeIcon(hTheme, hDC, iPartId, iStateId, *pRect.RECT, himl, iImageIndex)
DrawThemeParentBackground(hWnd, hDC, *prc.RECT)
DrawThemeText(hTheme, hDC, iPartId, iStateId, Text.s, iCharCount, dwTextFlags, dwTextFlags2, *pRect.RECT)
EnableThemeDialogTexture(hWnd, dwFlags)
EnableTheming(fEnable)
GetCurrentThemeName(*pszThemeFileName, dwMaxNameChars, *pszColorBuff, cchMaxColorChars, *pszSizeBuff, cchMaxSizeChars)
GetThemeAppProperties()
GetThemeBackgroundContentRect(hTheme, hDC, iPartId, iStateId, *pBoundingRect.RECT, *pContentRect.RECT)
GetThemeBackgroundExtent(hTheme, hDC, iPartId, iStateId, *pContentRect.RECT, *pExtentRect.RECT)
GetThemeBackgroundRegion(hTheme, hDC, iPartId, iStateId, *pRect.RECT, pRegion)
GetThemeBool(hTheme, iPartId, iStateId, iPropId, *pfVal)
GetThemeColor(hTheme, iPartId, iStateId, iPropId, *pColor)
GetThemeDocumentationProperty(pszThemeName.s, pszPropertyName.s, *pszValueBuff, cchMaxValChars)
GetThemeEnumValue(hTheme, iPartId, iStateId, iPropId, *piVal)
GetThemeFilename(hTheme, iPartId, iStateId, iPropId, *pszThemeFilename, cchMaxBuffChars)
GetThemeFont(hTheme, hDC, iPartId, iStateId, iPropId, *pFont.LOGFONT)
GetThemeInt(hTheme, iPartId, iStateId, iPropId, *piVal)
GetThemeIntList(hTheme, iPartId, iStateId, iPropId, *pIntList.INTLIST)
GetThemeMargins(hTheme, hDC, iPartId, iStateId, iPropId, *prc.RECT, *pMargins.MARGINS)
GetThemeMetric(hTheme, iPartId, iStateId, iPropId, *piVal)
GetThemePartSize(hTheme, iPartId, iStateId, *prc.RECT, eSize, *psz.SIZE)
GetThemePosition(hTheme, iPartId, iStateId, iPropId, *pPoint.POINT)
GetThemePropertyOrigin(hTheme, iPartId, iStateId, iPropId, *pOrigin)
GetThemeRect(hTheme, iPartId, iStateId, iPropId, *pRect.RECT)
GetThemeString(hTheme, iPartId, iStateId, iPropId, *pszBuff, cchMaxBuffChars)
GetThemeSysBool(hTheme, iBoolID)
GetThemeSysColor(hTheme, iColorID)
GetThemeSysColorBrush(hTheme, iColorID)
GetThemeSysFont(hTheme, int, *plf.LOGFONT)
GetThemeSysInt(hTheme, iIntID, *piValue)
GetThemeSysSize(hTheme, iSizeID)
GetThemeSysString(hTheme, iStringID, *pszStringBuff, cchMaxStringChars)
GetThemeTextExtent(hTheme, hDC, iPartId, iStateId, pszText.s, iCharCount, dwTextFlags, *pBoundingRect.RECT, *pExtentRect.RECT)
GetThemeTextMetrics(hTheme, hDC, iPartId, iStateId, *ptm.TEXTMETRIC)
GetWindowTheme(hWnd)
HitTestThemeBackground(hTheme, hDC, iPartId, iStateId, dwOptions, *pRect.RECT, hrgn, *ptTest.POINT, *pwHitTestCode)
IsAppThemed()
IsThemeActive()
IsThemeBackgroundPartiallyTransparent(hTheme, iPartId, iStateId)
IsThemeDialogTextureEnabled(hWnd)
IsThemePartDefined(hTheme, iPartId, iStateId)
OpenThemeData(hWnd, pszClassList.s)
SetThemeAppProperties(dwFlags)
SetWindowTheme(hWnd, pszSubAppName.s, pszSubIdList.s)
EndImport