这什么SetPixel 完全没效果
这什么SetPixel 完全没效果
Private Declare Function SetPixel Lib "gdi32 " (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
Private Sub Form_Load()
SetPixel Me.hdc, 40, 40, &HFF
MsgBox ""
End Sub
Private Declare Function SetPixel Lib "gdi32 " (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal crColor As Long) As Long
Private Sub Form_Click()
SetPixel Me.hdc, 40, 40, &HFF
Me.Refresh
MsgBox ""
End Sub
Private Sub Form_Load()
Me.AutoRedraw = True
Me.ScaleMode = vbPixels
End Sub