win32gui.RectInRegion

boolean = RectInRegion(hrgn, rc )

Determines if a region and rectangle overlap at any point

Parameters

hrgn : PyGdiHandle

Handle to a region

rc : PyRECT

Rectangle coordinates in logical units