SMALL_RECT structure

Defines the coordinates of the upper left and lower right corners of a rectangle.

Syntax

typedef struct _SMALL_RECT {
  SHORT Left;
  SHORT Top;
  SHORT Right;
  SHORT Bottom;
} SMALL_RECT;

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

This structure is used by console functions to specify rectangular areas of console screen buffers, where the coordinates specify the rows and columns of screen-buffer character cells.

Examples

For an example, see Scrolling a Screen Buffer's Contents.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Header WinConTypes.h (via WinCon.h, include Windows.h)

See also

RECT

RECTL