题目内容:
下列程序的功能是:当按下鼠标左键并在窗体上移动时,在鼠标经过的位置画点,松开鼠标移动时,不执行画点操作。当单击鼠标右键时,清除窗体上的内容。请在空白处填入适当的内容,将程序补充完整。Dim flag As Boolean
Privat Sub_Form_MouseDown(Button As Integer,Shift As Integer,X As Single,Y As Single)
Flag=Ture
If 【1】Then
Cls
End If
End Sub
Privat,e.Sub Form_MouseMove(Button As Integer,Shift As Integer,X As Single,Y As Single)
If flag Then
PSet(X,Y)
End If
End Sub
Privat,e.Sub Form_MouseUp(Button As Integer,Shift As Integer,X As Single,Y As Single)
End Sub
参考答案:
答案解析: