PolyPolygon

機能
複数の多角形を描画する
Declare Function PolyPolygon lib "gdi32.dll" _
(ByVal hdc As Long, lpPoints As Any, _
lpPolyCounts As Any, ByVal nCount As Long) As Long
Declare Function PolyPolygon lib "gdi32.dll" _
(ByVal hdc As Integer, lpPoints As Integer, _
lpPolyCounts As Integer, ByVal nCount As Integer) As Integer

BOOL PolyPolygon(
HDC hdc,
CONST POINT *lpPoints,
CONST INT *lpPolyCounts,
int nCount
);
引数
hdc

デバイスコンテキストのハンドル
lpPoints lpPolyCounts
lpPointsのうち、一つの多角形を構成する頂点数を格納するLONGの配列。
nCount
多角形の数(lpPointsの要素数)
戻り値
正常終了のとき               0以外
エラーのとき                 0
備考
多角形は交差しても良い。ブラシが選択されていれば、内部が塗りつぶされる。
この関数を実行後はペンの現在位置が変更されない。