Skip to content

Latest commit

 

History

History
51 lines (36 loc) · 1.25 KB

Polygon.md

File metadata and controls

51 lines (36 loc) · 1.25 KB

Home

Function name : Polygon

Group: Filled Shape - Library: gdi32


The Polygon function draws a polygon consisting of two or more vertices connected by straight lines. The polygon is outlined by using the current pen and filled by using the current brush and polygon fill mode.


Code examples:

How to put a vertical text scrolling on the form (a movie cast)

Declaration:

BOOL Polygon(
  HDC hdc,               // handle to DC
  CONST POINT *lpPoints, // polygon vertices
  int nCount             // count of vertices
);  

FoxPro declaration:

DECLARE INTEGER Polygon IN gdi32;
	INTEGER   hdc,;
	STRING  @ lpPoints,;
	INTEGER   nCount  

Parameters:

hdc [in] Handle to the device context.

lpPoints [in] Pointer to an array of POINT structures that specify the vertices of the polygon, in logical coordinates.

nCount [in] Specifies the number of vertices in the array. This value must be greater than or equal to 2.


Return value:

If the function succeeds, the return value is nonzero.