The RectInRegion function determines whether any part of the specified rectangle is within the boundaries of a region.
BOOL RectInRegion(
HRGN hrgn, // handle to region
CONST RECT *lprc // pointer to rectangle
);
If any part of the specified rectangle lies within the boundaries of the region, the return value is nonzero.
If no part of the specified rectangle lies within the boundaries of the region, the return value is zero.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in wingdi.h.
Import Library: Use gdi32.lib.
Regions Overview, Region Functions, PtInRegion, RECT