MFC列表视图控制鼠标移动事件
我开发了一个应用程序,它在对话框上有两个列表视图。 问题-我如何知道鼠标光标出现在哪里,我的意思是鼠标在哪个列表视图上移动。 我使用了鼠标移动事件,它适用于两个列表视图。我想知道鼠标正在移动的当前列表。
I have developed an application, which having two list views on a dialog box.
Que- How I come to know, where the mouse curser is present, I mean on which list view the mouse is moving.
I have used mouse move event, Its working for both list view. I would like to know the which list is current on which mouse is moving.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为您正在创建列表视图的主对话框中处理鼠标事件。如果您确实想处理列表视图的鼠标移动,您需要对列表视图进行子类化并在那里处理它。
如果您能清楚地表达您的要求,也许我们可以更好地帮助您。为什么需要知道鼠标在列表视图中的位置?
I think you are handling the mouse event in the main dialog where the list view is created. If you really want to handle the mouse movement of your list view you need to sub class the list view and handle it there.
If you can state your requirements clearly may be we can help you better. Why you need to know your mouse positions in the list view?
这可能对你有帮助。
This may help you.