win32gui.GetWindowRgn

int = GetWindowRgn(hWnd, hRgn )

Copies the window region of a window into an existing region

Parameters

hWnd : PyHANDLE

Handle to a window

hRgn : PyGdiHANDLE

Handle to an existing region that receives window region

Return Value

Returns type of region, one of COMPLEXREGION, NULLREGION, or SIMPLEREGION