PolylineTo

  BOOL PolylineTo(hdc, lpPoints, nCount)    
  HDC hdc; /* handle of a device context */
  LPPOINT lpPoints; /* address of an array of points */
  DWORD nCount; /* number of points in array */

The PolylineTo function draws one or more straight lines.

Parameters

hdc

Identifies the device context.

lpPoints

Points to an array of POINT structures containing the vertices of the line. The POINT structure has the following form:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

nCount

Specifies the number of points in the array.

Return Value

The return value is TRUE if the line segments were drawn. Otherwise, it is FALSE.

Comments

A line is drawn from the current position to the first point specified by the lpPoints parameter using the current pen. For each additional line, the function draws from the end point of the previous line to the next point specified by lpPoints.

PolylineTo moves the current position to the end point of the last line.

If the line segments drawn by this function form a closed figure, the figure is not filled.

See Also

LineTo, MoveToEx, Polyline