CreatePolyPolygonRgn

  HRGN CreatePolyPolygonRgn(lppt, lpPolyCounts, nCount, iPolyFillMode)    
  CONST POINT *lppt; /* address of array of points */
  CONST INT *lpPolyCounts; /* address of array that contains vertex counts */
  int nCount; /* number of integers in array of vertex counts */
  int iPolyFillMode; /* polygon filling mode */

The CreatePolyPolygonRgn function creates a region consisting of a series of polygons. The polygons may overlap.

Parameters

lppt

Points to an array of POINT data structures that define the vertices of the polygons. The polygons are specified consecutively. Each polygon is assumed closed. Specify each vertex only once.

lpPolyCounts

Points to an array of integers, each of which specifies the number of points in one of the polygons in the lppt array.

nCount

Specifies the total number of integers in the lpPolyCounts array.

iPolyFillMode

Specifies the filling mode used to determine which pixels are in the region. The iPolyFillMode parameter may be either of the following values:

Value Meaning

ALTERNATE Selects alternate mode.
WINDING Selects winding number mode.

Return Value

The return value identifies the region if the function was successfull. Otherwise, it is 0.

See Also

DeleteObject, SelectObject, SetPolyFillMode