这什么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 LongPrivate 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 LongPrivate Sub Form_Click() SetPixel Me.hdc, 40, 40, &HFF Me.Refresh MsgBox ""End SubPrivate Sub Form_Load() Me.AutoRedraw = True Me.ScaleMode = vbPixelsEnd Sub