SMALL_RECT

The SMALL_RECT structure defines the coordinates of the upper left and lower right corners of a rectangle.

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

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

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.

QuickInfo

  Windows NT: Requires version 3.1 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in wincon.h.

See Also

Consoles and Character-Mode Support Overview, Console Structures, RECT, RECTL