如何能在ListView控件中右击图标弹出菜单???????
如何能在ListView控件中右击图标弹出菜单???????
Thanks
问题点数:20、回复次数:4Top
1 楼tangbei(成心)回复于 2001-06-27 16:02:16 得分 20
要用到两个事件和一个变量:
dim intA as integer
Private Sub listView1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
intA = Button
End Sub
Private Sub ListView1_NodeClick(ByVal Node As MSComctlLib.Node)
if intA=2 then
Me.PopupMenu mnu
end if
End Sub
Top
2 楼matchboy(常常低着头)回复于 2001-06-27 17:37:18 得分 0
谢谢你!Top
3 楼matchboy(常常低着头)回复于 2001-06-27 18:02:50 得分 0
为什么我找不到ListView的NodeClick事件???????Top
4 楼matchboy(常常低着头)回复于 2001-06-27 18:05:56 得分 0
有个ItemClick事件倒是行的Top




