Polyline

  BOOL Polyline(hdc, lppt, cPoints)    
  HDC hdc; /* handle of device context */
  CONST POINT *lppt; /* address of array containing endpoints */
  int cPoints; /* number of points in the array */

The Polyline function draws a series of line segments by connecting the points in the given array.

Parameters

hdc

Identifies a device context.

lppt

Points to an array of POINT structures. Each structure in the array identifies a point in logical space. The POINT structure has the following form:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

cPoints

Specifies the number of points in the array. This value must be at least 2.

Return Value

The return value is TRUE if the function was successful, or FALSE if an error occurred.

Comments

The lines are drawn from the first point through subsequent points, using the current pen. Unlike the LineTo function, the Polyline function neither uses nor updates the current position.

See Also

LineTo, MoveToEx, PolylineTo, PolyPolyline