函数参考


_WinAPI_GetThemeSysColorBrush

Retrieves a system color brush.

#Include <WinAPIEx.au3>
_WinAPI_GetThemeSysColorBrush ( $hTheme, $iColorId )

参数

$hTheme Handle to the theme data.
$iColorId The value that specifies the number of the desired system color. It may be one of the following values.

$TMT_SCROLLBAR
$TMT_BACKGROUND
$TMT_ACTIVECAPTION
$TMT_INACTIVECAPTION
$TMT_WINDOW
$TMT_WINDOWFRAME
$TMT_MENUTEXT
$TMT_WINDOWTEXT
$TMT_CAPTIONTEXT
$TMT_ACTIVEBORDER
$TMT_INACTIVEBORDER
$TMT_APPWORKSPACE
$TMT_HIGHLIGHT
$TMT_HIGHLIGHTTEXT
$TMT_BTNFACE
$TMT_BTNSHADOW
$TMT_GRAYTEXT
$TMT_BTNTEXT
$TMT_INACTIVECAPTIONTEXT
$TMT_BTNHIGHLIGHT
$TMT_DKSHADOW3D
$TMT_LIGHT3D
$TMT_INFOTEXT
$TMT_INFOBK
$TMT_BUTTONALTERNATEFACE
$TMT_HOTTRACKING
$TMT_GRADIENTACTIVECAPTION
$TMT_GRADIENTINACTIVECAPTION
$TMT_MENUHILIGHT
$TMT_MENUBAR

返回值

Success Handle to the brush.
失败: 返回 0 并设置 @error 标志为非 0 值.

注意/说明

If the theme data handle is not 0, this function returns the brush that matches the specified color from the SysMetrics
section of the visual style, otherwise, the function returns the brush matching the global system color.

相关

详情参考

在MSDN中搜索