[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  PolyPolygon( hDC, aPolygon1, .. aPolygonN ) -> <lSuccess>

------------------------------------------------------------------------------


 PARAMETER:


  <hDC>        handle that identifies a device context

  <aPolygon>   Array with polygon vertices and points 
               { { x1, y1 }, {x2,y2,), {xN,yN}}



 RETURNS:

  The return value is TRUE if the function is successful, and zero,if not.


 DESCRIPTION:

  The PolyPolygon function creates two or more polygons that are filled by
  using the current polygon-filling mode. The polygons may be disjoint or
  overlapping. 
  Each polygon specified in a call to the PolyPolygon function must be 
  closed. Unlike polygons created by the Polygon function, the polygons
  created by PolyPolygon are not closed automatically. 
  The current polygon-filling mode can be set by using SetPolyFillMode()


  EXAMPLE:


     +-------------------------------------------------------------+
     | /* Draw some polygons */                                    |
     |  FUNCTION DrawSome()                                        |
     |     LOCAL ;                                                 |
     |       hDC := oWnd:GetDC()                                   |
     |                                                             |
     |       SetBlackPen( hDC )                                    |
     |       PolyPolygon( hDC ,;                                   |
     |        { {50,10}, {250,50}, {125,130}, {50,10 } } ,;        |
     |        { {200,10}, {30,50}, { 84,27}, {200,120} } ,;        |
     |        { {250,270},{340,150},{80,90},{135,220},{250,270}} ) |
     |                                                             |
     |       oWnd:ReleaseDC()                                      |
     |                                                             |
     +-------------------------------------------------------------+


 SOURCE:  

  SOURCE\WINAPI\DRAWING.C



See Also: hDC SetPolyFillMode
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson