COORD

The 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.

typedef struct _COORD { // coord. 
    SHORT X;      // horizontal coordinate 
    SHORT Y;      // vertical coordinate 
} COORD; 
 

Members

X
Horizontal or column value.
Y
Vertical or row value.

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