windows_programming_notes.nbk: Home | Index | Next Page: RegisterClass | Previous Page: Recent Changes
RECT
The RECT structure defines the coordinates of the upper-left and lower-right corners of a rectangle.
typedef struct _RECT {
LONG left;
LONG top;
LONG right;
LONG bottom;
} RECT, *PRECT;
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
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
Windows NT/2000 or later: Requires Windows NT 3.1 or later.
Windows 95/98/Me: Requires Windows 95 or later.
Header: Declared in Windef.h; include Windows.h.
windows_programming_notes.nbk: Home | Index | Next Page: RegisterClass | Previous Page: Recent Changes
Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time