“鼠标悬停”显示CMenu对象时处理消息 [英] "mouse hover" messages processing while CMenu object is displayed

查看:180
本文介绍了“鼠标悬停”显示CMenu对象时处理消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在显示CMenu对象时阻止所有其他(不是与CMenu相关的)操作。

how to prevent all other(not CMenu related) actions while CMenu object displayed.

右键单击触发CMenu要出现的对象。将鼠标移动到应用程序中的某些OTHER区域会触发工具提示,或者触发其他鼠标悬停事件。

Right click triggers CMenu object to appear. Moving a mouse over some OTHER areas in the application triggers tooltips to appear, or some other mouse hover events to be triggered.

如何防止它?

谢谢,

Alex

推荐答案

某些使用 CMenu.TrackPopupMenu 的MFC示例似乎没有出现此行为。显示有关代码和窗口的一些详细信息。

Some of the MFC samples that use CMenu.TrackPopupMenu does not seem to exhibit this behaviour. Show some details about your code and windows.


这篇关于“鼠标悬停”显示CMenu对象时处理消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆