# Function Reference

# _WinAPI_UpdateLayeredWindow

Updates the position, size, shape, content, and translucency of a layered window

#include <WinAPISysWin.au3>
_WinAPI_UpdateLayeredWindow ( $hWnd, $hDestDC, $tPTDest, $tSize, $hSrcDC, $tPTSrce, $iRGB, $tBlend, $iFlags )

## Parameters

$hWnd | Handle to a layered window. A layered window is created by specifying $WS_EX_LAYERED when creating the window.
$hDestDC | Handle to a device context for the screen
$tPTDest | A $tagPOINT structure or a pointer to it that specifies the new screen position of the layered window. If the current position is not changing, this can be zero.
$tSize | A $tagSIZE structure or a pointer to it that specifies the new size of the layered window. If the size of the window is not changing, this can be 0.
$hSrcDC | Handle to a device context for the surface that defines the layered window. This handle can be obtained by calling the _WinAPI_CreateCompatibleDC() function.
$tPTSrce | A $tagPOINT structure or a pointer to it that specifies the location of the layer in the device context
$iRGB | The color key to be used when composing the layered window
$tBlend | A $tagBLENDFUNCTION structure or a pointer to it that specifies the transparency value to be used when composing the layered window.
$iFlags | This parameter can be one of the following values. $ULW_ALPHA - Use $tblend as the blend function $ULW_COLORKEY - Use $iRGB as the transparency color $ULW_OPAQUE - Draw an opaque layered window

## Return Value

Success: | True
Failure: | False, call _WinAPI_GetLastError() to get extended error information

## Related

$tagBLENDFUNCTION, $tagPOINT, $tagSIZE

## See Also

Search UpdateLayeredWindow in MSDN Library.