PtInRegion function

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

Syntax

BOOL PtInRegion(
  HRGN hrgn,
  int  x,
  int  y
);

Parameters

hrgn

Handle to the region to be examined.

x

Specifies the x-coordinate of the point in logical units.

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

   
Windows version Windows 2000 Professional [desktop apps only] Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See Also

RectInRegion

Region Functions

Regions Overview