RectInRegion function (wingdi.h)
The RectInRegion function determines whether any part of the specified rectangle is within the boundaries of a region.
Syntax
BOOL RectInRegion(
[in] HRGN hrgn,
[in] const RECT *lprect
);
Parameters
[in] hrgn
Handle to the region.
[in] lprect
Pointer to a RECT structure containing the coordinates of the rectangle in logical units. The lower and right edges of the rectangle are not included.
Return value
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wingdi.h (include Windows.h) |
Library | Gdi32.lib |
DLL | Gdi32.dll |