Function Reference


Draws an image from an image list with the icon effect defined by the visual style

#include <WinAPITheme.au3>
_WinAPI_DrawThemeIcon ( $hTheme, $iPartID, $iStateID, $hDC, $tRECT, $hIL, $iIndex )


$hTheme Handle to a window's specified theme data.
$iPartID The part in which the image is drawn.
$iStateID The state of the part.
$hDC Handle to the device context.
$tRECT $tagRECT structure that contains the rectangle in which the image is drawn.
$hIL Handle to an image list that contains the image to draw.
$iIndex The index of the image to draw.

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

See Also

Search DrawThemeIcon in MSDN Library.