We recommend using Visual Studio 2017

POINT Structure1

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at POINT Structure1.

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

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

Parameters

x
Specifies the x-coordinate of a point.

y
Specifies the y-coordinate of a point.

      //Alternate ways to initialize a POINT structure:

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

      POINT ptB = {370,550};   

Header: windef.h

Structures, Styles, Callbacks, and Message Maps
CPoint Class

Show: