HRGN CreatePolygonRgn(lpPoints,nCount,nPolyFillMode)
This function creates a polygonal region.
Parameter | Type/Description | |
lpPoints | LPPOINT Points to an array of POINT data structures. Each point specifies the x- and y-coordinates of one vertex of the polygon. | |
Parameter | Type/Description | |
nCount | int Specifies the number of points in the array. | |
nPolyFillMode | int Specifies the polygon-filling mode to be used for filling the region. It can be ALTERNATE or WINDING (for an explanation of these modes, see the SetPolyFillMode function, later in this chapter). |
The return value identifies a new region if the function is successful. Otherwise, it is NULL.