(24) 在以下事件過程中,可以在用戶按下鼠標右鍵時,顯示一個上邊框,以鼠標當前位置為中心的彈出式菜單,而且這個彈出式菜單還可以識別右鍵對菜單命令的選擇,相應(yīng)的選項是
A) Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit, vbPopupMenuCenterAlign Or _
vbPopupMenuRightButton, X, Y, mnuEditOpen
End If
End Sub
B) Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit,
End If
End Sub
C) Private Sub Form_MouseUp(Button As Integer, Shift As Integer, _
X As Single, Y As Single)
PopupMenu mnuEdit, vbPopupMenuCenterAlign Or _
vbPopupMenuRightButton
End Sub
D) Private Sub Form_MouseUp(Button As Integer , _
Shift As Integer, X As Single, Y As Single)
If Button=2 Then
PopupMenu mnuEdit, 2
End If
End Sub
正確答案: A
相關(guān)推薦:2009年9月計算機等考二級VB模擬題及解析匯總北京 | 天津 | 上海 | 江蘇 | 山東 |
安徽 | 浙江 | 江西 | 福建 | 深圳 |
廣東 | 河北 | 湖南 | 廣西 | 河南 |
海南 | 湖北 | 四川 | 重慶 | 云南 |
貴州 | 西藏 | 新疆 | 陜西 | 山西 |
寧夏 | 甘肅 | 青海 | 遼寧 | 吉林 |
黑龍江 | 內(nèi)蒙古 |