複数の多角形を描画する
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
多角形は交差しても良い。ブラシが選択されていれば、内部が塗りつぶされる。 この関数を実行後はペンの現在位置が変更されない。