A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



PtInRegion

The PtInRegion function determines whether the specified point is inside the specified region.

VB4-32,5,6
Declare Function PtInRegion Lib "gdi32" Alias "PtInRegion" (ByVal hRgn As Long, ByVal x As Long, ByVal y As Long) As Long

VB.NET
System.Drawing.Region

Operating Systems Supported
Requires Windows NT 3.1 or later; Requires Windows 95 or later

Library
Gdi32

Parameter Information
- hrgn
Identifies the region to be examined.

- X
Specifies the x-coordinate of the point.

- Y
Specifies the y-coordinate of the point.

Return Values
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.

Last update: 07 April 2006