typedef struct tagRECT { /* rc */
int left;
int top;
int right;
int bottom;
} RECT;
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
left
Specifies the x-coordinate of the upper-left corner of a rectangle.
top
Specifies the y-coordinate of the upper-left corner of a rectangle.
right
Specifies the x-coordinate of the lower-right corner of a rectangle.
bottom
Specifies the y-coordinate of the lower-right corner of a rectangle.
The width of the rectangle defined by the RECT structure must not exceed 32,767 units.
When the RECT structure is passed to the FillRect function, graphics device interface (GDI) fills the rectangle up to, but not including, the right column and bottom row of pixels.