BOOL RectInRegion(hrgn, lprc) | |||||
HRGN hrgn; | /* handle of the region | */ | |||
LPRECT lprc; | /* address of structure with rectangle | */ |
The RectInRegion function determines whether any part of a specified rectangle is within the boundaries of a specified region.
hrgn
Identifies the region.
lprc
Points to a RECT structure containing the coordinates of the rectangle. The lower and right edges of the rectangle are not included.
The RECT structure has the following form:
typedef struct tagRECT { /* rc */
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT;
The return value is TRUE if any part of the specified rectangle lies within the boundaries of the region. Otherwise, the return value is FALSE.
PtInRegion