Public Declare Function Polygon Lib "gdi32" Alias "Polygon" (ByVal hdc As Long, lpPoint As POINTAPI, ByVal nCount As Long) As Long  hdc ------------  Long,用于描绘的设备场景  lpPoint --------  POINTAPI,在nCount POINTAPI结构数组中的第一个POINTAPI结构  nCount ---------  Long,多边形的总点数(顶点数)lpPoint这个参数是什么意思?怎么设?

解决方案 »

  1.   

    Private Declare Function Polygon Lib "gdi32" (ByVal hdc As Long, lpPoint As POINTAPI, ByVal nCount As Long) As Long
    Private Type POINTAPI
            x As Long
            y As Long
    End TypeDim pt(4) As POINTAPI
    Private Sub Command1_Click()
        pt(0).x = 10
        pt(0).y = 10
        pt(1).x = 20
        pt(1).y = 20
        pt(2).x = 5
        pt(2).y = 50
        Polygon Me.hdc, pt(0), 3
    End Sub'哇!你还菜鸟,那我们不就是菜菜菜菜菜菜菜菜菜菜鸟