PolyPolyline

  BOOL PolyPolyline(hdc, lpPoints, lpPolyCounts, nCount)    
  HDC hdc; /* handle of a device context */
  LPPOINT lpPoints; /* address of an array of points */
  LPDWORD lpPolyCounts; /* address of an array of values */
  DWORD nCount; /* number of points in the first array */

The PolyPolyline function draws multiple series of connected line segments.

Parameters

hdc

Identifies the device context.

lpPoints

Points to an array of POINT structures that define the vertices of the polylines. The polylines are specified consecutively. The POINT structure has the following form:

typedef struct tagPOINT { /* pt */

LONG x;

LONG y;

} POINT;

lpPolyCounts

Points to an array of DWORDs, each of which specifies the number of points in the lpPoints array for the corresponding polygon. Each entry must be at least 2.

nCount

Specifies the total number of counts in the lpPolyCounts array.

Return Value

The return value specifies whether or not the polylines were drawn. It is TRUE if the polylines were drawn. Otherwise it is FALSE.

Comments

The line segments are drawn with the current pen. The figures which are formed by the segments are not filled.

The current position is neither used nor updated by this function.

See Also

Polyline, PolylineTo