问题 单项选择题

假定有如下事件过程:
Private Sub Form_MouseDown(Button As Integer,Shift As Integer,X As Sinsle,Y As Single)
If Button=2 then
PopupMenu popForm
End If
End Sub
则以下描述中错误的是

A.该过程的功能是弹出一个菜单

B.popForm是在菜单编辑器中定义的弹出式菜单的名称

C.参数X、Y指明鼠标的当前位置

D.Button=2表示按下的是鼠标左键

答案

参考答案:D

解析: 参数X、Y指明鼠标当前所在的位置,而Button=2表示按下的是右键;1表示左键;另外Button=4表示按下鼠标的中间键。另外“PopupMenu PopFonn”表示把在菜单编辑器中定义的菜单表示为弹出式菜单。

判断题