PtInRegion function (wingdi.h)
The PtInRegion function determines whether the specified point is inside the specified region.
Syntax
BOOL PtInRegion(
[in] HRGN hrgn,
[in] int x,
[in] int y
);
Parameters
[in] hrgn
Handle to the region to be examined.
[in] x
Specifies the x-coordinate of the point in logical units.
[in] y
Specifies the y-coordinate of the point in logical units.
Return value
If the specified point is in the region, the return value is nonzero.
If the specified point is not in 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 |