BOOL PolyPolygon(hDC, lpPoints,lpPolyCounts,nCount)
This function creates a series of closed polygons. The polygons are filled using the current polygon-filling mode. For a description of the polygon-filling mode, see the SetPolyFillMode function, later in this chapter. The polygons may overlap, but they do not have to overlap.
Parameter | Description |
hDC | HDC Identifies the device context. | |
lpPoints | LPPOINT Points to an array of POINT data structures that define the vertices of the polygons. Each polygon must be a closed polygon. Unlike polygons created by the Polygon function, the polygons created by PolyPolygon are not automatically closed. The polygons are specified consecutively. | |
lpPolyCounts | LPINT Points to an array of integers, each of which specifies the number of points in one of the polygons in the lpPoints array. | |
nCount | int Specifies the total number of integers in the lpPolyCounts array. |
The return value specifies the outcome of the function. It is nonzero if the polygons were drawn. Otherwise, it is zero.