RECT structure
Applies to: desktop apps only
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
Syntax
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
Members
- left
-
The x-coordinate of the upper-left corner of the rectangle.
- top
-
The y-coordinate of the upper-left corner of the rectangle.
- right
-
The x-coordinate of the lower-right corner of the rectangle.
- bottom
-
The y-coordinate of the lower-right corner of the rectangle.
Remarks
By convention, the right and bottom edges of the rectangle are normally considered exclusive. In other words, the pixel whose coordinates are ( right, bottom ) lies immediately outside of the rectangle. For example, when RECT is passed to the FillRect function, the rectangle is filled up to, but not including, the right column and bottom row of pixels. This structure is identical to the RECTL structure.
Requirements
|
Minimum supported client | Windows 2000 Professional |
|---|---|
|
Minimum supported server | Windows 2000 Server |
|
Header |
|
See also
Send comments about this topic to Microsoft
Build date: 3/7/2012