win32gui.SetLayeredWindowAttributes

SetLayeredWindowAttributes(hwnd, Key, Alpha, Flags)

Sets the opacity and transparency color key of a layered window.

Parameters

hwnd : PyHANDLE

handle to the layered window

Key : int

Specifies the color key. Use win32api::RGB to generate value.

Alpha : int

Opacity, in the range 0-255

Flags : int

Combination of win32con.LWA_* values

Comments

This function only exists on Win2k and later

Accepts keyword arguments