Polygon (Compact 2013)
This function draws a polygon consisting of two or more vertices connected by straight lines. The current pen outlines the polygon, and the current brush fills it using the specified polygon fill mode.
const POINT* lpPoints,
[in] Handle to the device context.
[in] Long pointer to an array of
POINT structures that specify the vertices of the polygon.
[in] Specifies the number of vertices in the array.
This value must be greater than or equal to 2.
Nonzero indicates success.
Zero indicates failure.
To get extended error information, call
The polygon is closed by drawing a line from the last vertex to the first.
The current position is not used or updated by the