Share via


POINT Structure

The POINT data structure has the following form:

typedef struct tagPOINT {
   LONG x;
   LONG y;
} POINT;

The POINT structure defines the x- and y-coordinates of a point.

Members

x

Specifies the x-coordinate of a point.

y

Specifies the y-coordinate of a point.

Example

//Alternate ways to initialize a POINT structure:

POINT ptA;
ptA.x = 370;
ptA.y = 550;

POINT ptB = {370,550};

See Also   CPoint