Export (0) Print
Expand All
Expand Minimize

Polygon

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

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.


BOOL Polygon(
  HDC hdc, 
  const POINT* lpPoints, 
  int nCount
); 

hdc

[in] Handle to the device context.

lpPoints

[in] Long pointer to an array of POINT structures that specify the vertices of the polygon.

nCount

[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 GetLastError.

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 Polygon function.

Windows CE 1.0 and 1.01 support only convex polygons.

Headerwindows.h
Librarycoredll.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft