RECT structure (windef.h)

The RECT structure defines a rectangle by the coordinates of its upper-left and lower-right corners.

Syntax

typedef struct tagRECT {
  LONG left;
  LONG top;
  LONG right;
  LONG bottom;
} RECT, *PRECT, *NPRECT, *LPRECT;

Members

left

Specifies the x-coordinate of the upper-left corner of the rectangle.

top

Specifies the y-coordinate of the upper-left corner of the rectangle.

right

Specifies the x-coordinate of the lower-right corner of the rectangle.

bottom

Specifies the y-coordinate of the lower-right corner of the rectangle.

Remarks

The RECT structure is identical to the RECTL structure.

Requirements

Requirement Value
Header windef.h (include Windows.h)

See also

RECTL