@@ -994,6 +994,7 @@ var (
994
994
lineTo uintptr
995
995
moveToEx uintptr
996
996
playEnhMetaFile uintptr
997
+ polyline uintptr
997
998
rectangle uintptr
998
999
resetDC uintptr
999
1000
restoreDC uintptr
@@ -1052,6 +1053,7 @@ func init() {
1052
1053
lineTo = MustGetProcAddress (libgdi32 , "LineTo" )
1053
1054
moveToEx = MustGetProcAddress (libgdi32 , "MoveToEx" )
1054
1055
playEnhMetaFile = MustGetProcAddress (libgdi32 , "PlayEnhMetaFile" )
1056
+ polyline = MustGetProcAddress (libgdi32 , "Polyline" )
1055
1057
rectangle = MustGetProcAddress (libgdi32 , "Rectangle" )
1056
1058
resetDC = MustGetProcAddress (libgdi32 , "ResetDCW" )
1057
1059
restoreDC = MustGetProcAddress (libgdi32 , "RestoreDC" )
@@ -1417,6 +1419,15 @@ func PlayEnhMetaFile(hdc HDC, hemf HENHMETAFILE, lpRect *RECT) bool {
1417
1419
return ret != 0
1418
1420
}
1419
1421
1422
+ func Polyline (hdc HDC , lppt unsafe.Pointer , cPoints int32 ) bool {
1423
+ ret , _ , _ := syscall .Syscall (polyline , 3 ,
1424
+ uintptr (hdc ),
1425
+ uintptr (lppt ),
1426
+ uintptr (cPoints ))
1427
+
1428
+ return ret != 0
1429
+ }
1430
+
1420
1431
func Rectangle_ (hdc HDC , nLeftRect , nTopRect , nRightRect , nBottomRect int32 ) bool {
1421
1432
ret , _ , _ := syscall .Syscall6 (rectangle , 5 ,
1422
1433
uintptr (hdc ),
0 commit comments