PtInRegion function
Applies to: desktop apps only
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
- hrgn [in]
-
Handle to the region to be examined.
- X [in]
-
Specifies the x-coordinate of the point in logical units.
- Y [in]
-
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.
Examples
For an example, see Drawing Markers.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012
Not concurrently safe
Despite it doesn't change the state of a region, if used concurrently the returning values are often incorrect.
- 11/4/2011
- Stoyan Alexander