Public Declare Function DrawText Lib "user32" Alias "DrawTextA" (ByVal hdc As Long, ByVal lpStr As String, ByVal nCount As Long, lpRect As RECT, ByVal wFormat As Long) As Long
Public Type RECT
        Left As Long
        Top As Long
        Right As Long
        Bottom As Long
End Type
其中,hdc为pictrue1.hdc,lpStr为字符串,nCount为字符串长度,lpRect为坐标类型,wFormat为对格式(对齐方式)