Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CDC::Polygon
CDC                                         Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  BOOL Polygon( LPPOINT lpPoints, int nCount );
 
  Parameter   Description
 
  <lpPoints>  Points to an array of points that specify the vertices of
              the polygon. Each point in the array is a POINT structure
              or a CPoint object.
 
  <nCount>    Specifies the number of vertices given in the array.
 
  Remarks
 
  Draws a polygon consisting of two or more points (vertices) connected by
  lines. 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
  GetPolyFillMode and SetPolyFillMode.
 
  Return Value
 
  TRUE if the function is successful; otherwise FALSE.
 
  See Also
 
  CDC::GetPolyFillMode, ::PolyLine, CDC::PolyPolygon,
  CDC::SetPolyFillMode, ::Polygon
 
 
                                     -♦-