Previous Next

RECT

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

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.

Headers

Declared in windef.h. Include windows.h.

Comments

The RECT structure is identical to the RECTL structure.

See Also

RECTL