Rect::Contains(constPoint&) method (gdiplustypes.h)

The Rect::Contains method determines whether a point is inside this rectangle.

Syntax

BOOL Contains(
  [in] const Point & pt
);

Parameters

[in] pt

Type: const Point&

Reference to a point to be tested.

Return value

Type: BOOL

If the point is inside the rectangle, this method returns TRUE; otherwise, it returns FALSE.

Requirements

   
Minimum supported client Windows XP, Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header gdiplustypes.h (include Gdiplus.h)
Library Gdiplus.lib
DLL Gdiplus.dll

See also

Contains Methods

Pens, Lines, and Rectangles

Point

Rect

RectF

Using a Pen to Draw Lines and Rectangles