The Polyline function draws a series of line segments by connecting the points in the specified array.
BOOL Polyline(
HDC hdc, |
// handle of device context |
CONST POINT *lppt, |
// address of array containing endpoints |
int cPoints |
// number of points in the array |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The lines are drawn from the first point through subsequent points by using the current pen. Unlike the LineTo function, the Polyline function neither uses nor updates the current position.