Function Reference


Creates a fully transparent icon with the specified width, height, and color depth

#include <WinAPIGdi.au3>
_WinAPI_CreateEmptyIcon ( $iWidth, $iHeight [, $iBitsPerPel = 32] )


$iWidth The width, in pixels, of the icon.
$iHeight The height, in pixels, of the icon.
$iBitsPerPel [optional] The number of bits-per-pixel in the XOR bitmask of the icon. Default is 32.

Return Value

Success: Handle to the created icon.
Failure: 0 and sets the @error flag to non-zero.


This function creates an icon with black XOR, and white AND bitmask bitmaps.
This icon has no alpha channel, it will be displayed only by using its AND bitmask.

When you are finished using the icon, destroy it using the _WinAPI_DestroyIcon() function.