Skip to content

Latest commit

 

History

History
105 lines (73 loc) · 2.61 KB

coord-str.md

File metadata and controls

105 lines (73 loc) · 2.61 KB
title description author ms.author ms.topic keywords f1_keywords MS-HAID MSHAttr ms.assetid topic_type api_name api_location api_type
COORD structure
Defines the coordinates of a character cell in a console screen buffer.
miniksa
miniksa
article
console, character mode applications, command line applications, terminal applications, console api
wincontypes/COORD
wincon/COORD
COORD
wincontypes/PCOORD
wincon/PCOORD
PCOORD
\_win32\_coord\_str
base.coord\_str
consoles.coord\_str
PreferredSiteName:MSDN
PreferredLib:/library/windows/desktop
d730c46e-ea17-475e-b956-8ee5f4f5c04e
apiref
COORD
WinCon.h
HeaderDef

COORD structure

Defines the coordinates of a character cell in a console screen buffer. The origin of the coordinate system (0,0) is at the top, left cell of the buffer.

Syntax

typedef struct _COORD {
  SHORT X;
  SHORT Y;
} COORD, *PCOORD;

Members

X
The horizontal coordinate or column value. The units depend on the function call.

Y
The vertical coordinate or row value. The units depend on the function call.

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

CONSOLE_FONT_INFO

CONSOLE_SCREEN_BUFFER_INFO

CONSOLE_SELECTION_INFO

FillConsoleOutputAttribute

FillConsoleOutputCharacter

GetConsoleFontSize

GetLargestConsoleWindowSize

MOUSE_EVENT_RECORD

ReadConsoleOutput

ReadConsoleOutputAttribute

ReadConsoleOutputCharacter

ScrollConsoleScreenBuffer

SetConsoleCursorPosition

SetConsoleDisplayMode

SetConsoleScreenBufferSize

WINDOW_BUFFER_SIZE_RECORD

WriteConsoleOutput

WriteConsoleOutputAttribute

WriteConsoleOutputCharacter