PolyPolyline function (wingdi.h)

The PolyPolyline function draws multiple series of connected line segments.

Syntax

BOOL PolyPolyline(
  [in] HDC         hdc,
  [in] const POINT *apt,
  [in] const DWORD *asz,
  [in] DWORD       csz
);

Parameters

[in] hdc

A handle to the device context.

[in] apt

A pointer to an array of POINT structures that contains the vertices of the polylines, in logical units. The polylines are specified consecutively.

[in] asz

A pointer to an array of variables specifying the number of points in the lppt array for the corresponding polyline. Each entry must be greater than or equal to two.

[in] csz

The total number of entries in the lpdwPolyPoints array.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

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

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

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h (include Windows.h)
Library Gdi32.lib
DLL Gdi32.dll

See also

Line and Curve Functions

Lines and Curves Overview

POINT

Polyline

PolylineTo