Polyline

Syntax

BOOL Polyline(hDC,lpPoints,nCount)

This function draws a set of line segments, connecting the points specified by the lpPoints parameter. The lines are drawn from the first point through subsequent points with the result as if the MoveTo and LineTo functions were used to move to each new point and then connect it to the next. However, the current position is neither used nor updated by the Polyline function.

Parameter Type/Description  

hDC HDC Identifies the device context.  
lpPoints LPPOINT Points to an array of points to be connected. Each point in the array is a POINT data structure.  
nCount int Specifies the number of points in the array. The nCount parameter must be at least 2.  

Return Value

The return value specifies whether or not the line segments were drawn. It is nonzero if the line segments were drawn. Otherwise, it is zero.

Comments

This function draws lines with the selected pen.