Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Option Explicit
Private Declare Function SetPolyFillMode Lib "gdi32" (ByVal hdc As Long, ByVal nPolyFillMode As Long) As Long
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 Type
Private Const WINDING = 2
Private Sub Command1_Click()
Dim pts() As POINTAPI
ReDim pts(2)
pts(0).x = Line1.X1
pts(0).y = Line1.Y1
pts(1).x = Line2.X1
pts(1).y = Line2.Y1
pts(2).x = Line3.X1
pts(2).y = Line3.Y1
Form1.FillStyle = 0 ' solid fill
Call SetPolyFillMode(Form1.hdc, WINDING)
Call Polygon(Form1.hdc, pts(0), 3)
End Sub