不必用 API 函数。Option ExplicitPrivate Sub Form_Load()
Me.AutoRedraw = True
Me.FontSize = 20
Me.CurrentX = Me.Width \ 2 - Me.TextWidth("袁飞")
Me.CurrentY = Me.Height \ 2
Me.Print "袁飞你好!"Me.DrawMode = 2
Me.Line (0, 0)-(Me.Width \ 2, Me.Height), , BF
End Sub