BOOL Polygon( LPPOINT lpPoints, int nCount );
Return Value
Nonzero if the function is successful; otherwise 0.
Parameters
lpPoints
Points to an array of points that specifies the vertices of the polygon. Each point in the array is a POINT structure or a CPoint object.
nCount
Specifies the number of vertices in the array.
Remarks
Draws a polygon consisting of two or more points (vertices) connected by lines, using the current pen. The system closes the polygon automatically, if necessary, by drawing a line from the last vertex to the first.
The current polygon-filling mode can be retrieved or set by using the GetPolyFillMode and SetPolyFillMode member functions.
CDC Overview | Class Members | Hierarchy Chart
See Also CDC::GetPolyFillMode, CDC::Polyline, CDC::PolyPolygon, CDC::SetPolyFillMode, CPoint, ::Polygon