'POINT構造体
Private Type POINTAPI
x As Long
y As Long
End Type
'直線描画API
'===========================================================
'MoveToEx 描画開始点を新しい点に設定する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'x,y:新しい座標
'lpPoint:以前の描画開始点が格納される
'===========================================================
Private Declare Function MoveToEx Lib "gdi32" (ByVal _
hdc As Long, ByVal x As Long, _
ByVal y As Long, lpPoint As POINTAPI) As Long
'===========================================================
'LineTo 描画開始点から指定された終点までの線分を描画する
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'x,y:終点座標
'(関数が成功すると、指定した終点が描画開始点に)
'===========================================================
Private Declare Function LineTo Lib "gdi32" (ByVal _
hdc As Long, ByVal x As Long, _
ByVal y As Long) As Long
'===========================================================
'Polyline 指定された点を結ぶ連続した線分を、一括して描画
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'lpPoint:点の座標の配列
'nCount:点の数
'(現在の描画開始点を使用しない)
'===========================================================
Private Declare Function Polyline Lib "gdi32" ( _
ByVal hdc As Long, lpPoint As POINTAPI, _
ByVal nCount As Long) As Long
'===========================================================
'PolylineTo 指定された点を結ぶ連続した線分を、一括して描画
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'lppt:点の座標の配列
'nCount:点の数
'(現在の描画開始点を使用する)
'===========================================================
Private Declare Function PolylineTo Lib "gdi32" ( _
ByVal hdc As Long, lppt As _
POINTAPI, ByVal cCount As Long) As Long
'===========================================================
'PolyPolyline 連続した線分を、複数個描画画
'---------引数----------------------------------------------
'hdc:描画先デバイスコンテキスト
'lppt:点の座標の配列
'lpdwPolyPoints:それぞれの連続した線分が持つ点の数
'cCount:連続した線分の数
'===========================================================
Private Declare Function PolyPolyline Lib "gdi32" _
(ByVal hdc As Long, lppt As POINTAPI, _
lpdwPolyPoints As Long, _
ByVal cCount As Long) As Long
|