Export (0) Print
Expand All

PtInRegion function

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 [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Regions Overview
Region Functions
RectInRegion

 

 

Community Additions

ADD
Show:
© 2014 Microsoft