PtInRegion function (wingdi.h)
The PtInRegion function determines whether the specified point is inside the specified region.
C++
BOOL PtInRegion(
[in] HRGN hrgn,
[in] int x,
[in] int y
);
[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.
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.
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 |