RECT structure

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, NEAR *NPRECT, FAR *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

Header

Windef.h (include Windows.h)

See also

RECTL

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft