函数参考


_WinAPI_GetThemeBitmap

Retrieves the bitmap associated with a particular theme, part, state, and property.

#Include <WinAPIEx.au3>
_WinAPI_GetThemeBitmap ( $hTheme, $iPartId, $iStateId, $iPropId [, $iFlag] )

参数

$hTheme Handle to a window's specified theme data.
$iPartId The part that contains the bitmap.
$iStateId The state of the part.
$iPropId The property to retrieve. Set this parameter to 0 to automatically select the first available bitmap
for this part and state, or use one of the following values.

$TMT_DIBDATA
$TMT_GLYPHDIBDATA
$TMT_HBITMAP
$iFlag [可选参数] This parameter can be one of the following values.

$GBF_DIRECT
$GBF_COPY
$GBF_VALIDBITS

返回值

Success Handle to the requested bitmap.
Failure (-1) and sets the @error flag to non-zero, @extended flag may contain the system error code.

注意/说明

If $iFlag is set to $GBF_COPY, release the bitmap returned by this function when no longer needed by calling
_WinAPI_DeleteObject().

本函数需要 Windows Vista 或更高版本系统.

相关

详情参考

在MSDN中搜索