菜单绘制遇到的一点问题
2009-03-11 18:03
204 查看
WM_CANCELMODE
The WM_CANCELMODE message is sent to cancel certain modes, such as mouse capture. For example, the system sends this message to the active window when a dialog box or message box is displayed. Certain functions also send this message explicitly to the specified window regardless of whether it is the active window. For example, the EnableWindow function sends this message when disabling the specified window.WM_ENTERIDLE
The WM_ENTERIDLE message is sent to the owner window of a modal dialog box or menu that is entering an idle state. A modal dialog box or menu enters an idle state when no messages are waiting in its queue after it has processed one or more previous messages.WM_ENTERIDLE fuSource = wParam; // idle-source flag hwnd = (HWND) lParam; // handle of dialog box or owner window
我们一般使用TrackPopupMenuEx弹出菜单,问题的关键是,在菜单未关闭时,TrackPopupMenuEx并不返回,并拦截鼠标和键盘消息,
使用spy可以看到,此时的工具栏收不到任何消息,当然无从改变热点
在WM_ENTERIDLE响应函数中发送此消息即可达到目的
相关文章推荐
- 使用MFC CImage类绘制PNG图片时遇到的问题
- 遇到的一点问题些
- 9*9乘法表中for循环中遇到的一点问题
- 使用parse generator遇到的一点问题,刚刚入门啊
- caffe可视化绘制网络结构图方法及遇到问题总结
- 项目中遇到的问题-2:编译第三方静态库报错、查看静态库的类型、绘制圆形
- 安装Apache遇到的一点问题
- 阿里大鱼发短信SDK遇到的一点问题
- JDBC编程中遇到的一点小问题
- 初学Oracle时遇到的一点问题以及解决办法
- [FreeMind] 绘制思维时遇到的常见问题解决办法
- 使用U盘安装centos6.8遇到的一点问题总结
- 利用伪B站做测试的时候遇到304的一点小问题
- 关于ActivityGroup使用过程中遇到的一点问题
- 单击菜单自动调用扫一扫功能,遇到的问题和大家分享一下
- 当EditText做Recyclerview头部时,界面绘制好后发现Recyclerview向上滚动了一点的问题
- 关于GDI绘制遇到的几个问题
- MsChart 部署遇到的一点问题
- import与from xx import遇到的一点问题-python学习
- ubuntu 安装Tomcat时遇到的一点小问题