PtVisible

The PtVisible function indicates whether the specified point is within the clipping region of a device context.

BOOL PtVisible(
  HDC hdc,  // handle of device context
  int X,    // x-coordinate of point
  int Y     // y-coordinate of point
);
 

Parameters

hdc
Handle to the device context.
X
Specifies the logical x-coordinate of the point.
Y
Specifies the logical y-coordinate of the point.

Return Values

If the specified point is within the clipping region of the device context, the return value is nonzero.

If the specified point is not within the clipping region of the device context, the return value is zero.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.
  Import Library: Use gdi32.lib.

See Also

Clipping Overview, Clipping Functions, RectVisible