PolyPolygon

  BOOL PolyPolygon(hdc, lpPoints, lpPolyCounts, nCount)    
  HDC hdc;    
  LPPOINT lpPoints;    
  LPINT lpPolyCounts;    
  int nCount;    

The PolyPolygon function draws a series of closed polygons. The polygons are filled with the current brush using the current polygon-filling mode, and outlined using the current pen. The polygons may overlap.

Parameters

hdc

Identifies the device context.

lpPoints

Points to an array of POINT data structures that define the vertices of the polygons. The polygons are specified consecutively. Each polygon is automatically closed by drawing a line from the last vertex to the first. Specify each vertex only once.

lpPolyCounts

Points to an array of integers, 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 is TRUE if the polygons were drawn. Otherwise, it is FALSE.

Comments

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

See Also

GetPolyFillMode, SetPolyFillMode, Polygon, Polyline, PolylineTo