Option ExplicitPrivate Type RECT
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As LongPrivate Sub Command1_Click() Dim R As RECT
R.Left = 50
R.Right = 200
R.Top = 50
R.Bottom = 200
DrawFocusRect Picture1.hdc, R
End SubPrivate Sub Form_Load()
Picture1.DrawMode = vbPixelsEnd Sub
Left As Long
Top As Long
Right As Long
Bottom As Long
End Type
Private Declare Function DrawFocusRect Lib "user32" (ByVal hdc As Long, lpRect As RECT) As LongPrivate Sub Command1_Click() Dim R As RECT
R.Left = 50
R.Right = 200
R.Top = 50
R.Bottom = 200
DrawFocusRect Picture1.hdc, R
End SubPrivate Sub Form_Load()
Picture1.DrawMode = vbPixelsEnd Sub
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货