Skip to content

Latest commit

 

History

History
80 lines (61 loc) · 1.86 KB

small-rect-str.md

File metadata and controls

80 lines (61 loc) · 1.86 KB
author ms.author ms.topic keywords f1_keywords title description MS-HAID MSHAttr ms.assetid topic_type api_name api_location api_type
miniksa
miniksa
article
console, character mode applications, command line applications, terminal applications, console api
wincontypes/SMALL_RECT
wincon/SMALL_RECT
SMALL_RECT
SMALL_RECT structure
Defines the coordinates of the upper left and lower right corners of a rectangle.
\_win32\_small\_rect\_str
base.small\_rect\_str
consoles.small\_rect\_str
PreferredSiteName:MSDN
PreferredLib:/library/windows/desktop
62639815-c7e9-4ae2-b152-61290f78422b
apiref
SMALL_RECT
WinCon.h
HeaderDef

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