Platform SDK: Files and I/O

SMALL_RECT

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

typedef struct _SMALL_RECT {
  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.

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Wincon.h; include Windows.h.

See Also

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