The RectInRegion function determines whether any part of the specified rectangle is within the boundaries of a region.
BOOL RectInRegion(
HRGN hrgn, |
// handle of region |
CONST RECT *lprc |
// address of structure with 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.