ListView利用右键菜单操作其中的记录要点有两个
1. ListView的FullRowSelect属性一定要设置为true,不然只有当你的鼠标在记录的第一列点击才会得到当前操作的记录,不然获取的就是空不管你是用getitemat还是focusitem方法。
2. 可以先使用mouseup事件屏蔽掉空白记录的右键事件。