最后的分数了. 我的程序里用了Listview, 而且我用了

dbbdggdbbdgg 2000-06-13 11:43:00
最后的分数了. 我的程序里用了Listview, 而且我用了
Private Sub lvwTopic_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
事件.

问题: 我想在程序的其它地方激发这个事件, 怎么办?
Button 和 shift 我知道 0,1就行, X, Y呢, 用什么代替?

Call lvwTopic_MouseUp 1,0,??,??
...全文
127 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
bokei 2000-06-18
  • 打赏
  • 举报
回复
用API函数GetCursorPos就可以拿到鼠标的位置了。
TopHead 2000-06-13
  • 打赏
  • 举报
回复
X,Y是发生事件的坐标啊,你想指定多少就指定多少呗:)
Limu 2000-06-13
  • 打赏
  • 举报
回复
You can also use this statement:
RaiseEvent lvwTopic_MouseUp 1,0,0,0
X and Y is the virtual position when mouse release up,they can be any integer value.

7,763

社区成员

发帖
与我相关
我的任务
社区描述
VB 基础类
社区管理员
  • VB基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧