0 out of 1 rated this helpful - Rate this topic

Polyline function

Applies to: desktop apps only

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

Syntax

BOOL Polyline(
  __in  HDC hdc,
  __in  const POINT *lppt,
  __in  int cPoints
);

Parameters

hdc [in]

A handle to a device context.

lppt [in]

A pointer to an array of POINT structures, in logical units.

cPoints [in]

The number of points in the array. This number must be greater than or equal to two.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

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

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Lines and Curves Overview
Line and Curve Functions
LineTo
MoveToEx
POINT
PolylineTo
PolyPolyline

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ