通知图标消息不会给 MsgWaitForMultipleObjectsEx 留下深刻印象
我使用 MsgWaitForMultipleObjectsEx()
进行消息循环,并使用 Shell_NotifyIcon
创建托盘图标。
事情是这样的:每当托盘图标向其所有者窗口发送消息时,该窗口不会立即接收消息,而是会排队直到任何其他类型的消息到达(例如 WM_MOUSEMOVE
) )。
尽管我使用 QS_ALLEVENTS 调用
唤醒面具。MsgWaitForMultipleObjectsEx()
,但由于某种原因,来自托盘图标的消息似乎无法使 MsgWaitForMultipleObjectsEx()
脱离等待状态
我使用 WM_USER
+ ... 作为 NOTIFYICONDATA::uCallbackMessage
,并且我还尝试使用“具体”值(WM_MOVE
,.. 。) 反而。 没有帮助。
有人遇到过这个问题吗?
I am using MsgWaitForMultipleObjectsEx()
for my message loop, and Shell_NotifyIcon
to create tray icons.
Here's the deal: Whenever the tray icon sends messages to it's owner window, the window won't receive the messages right away, instead they will get queued until any other type of message arrives (WM_MOUSEMOVE
, for example).
Seems like the messages from the tray icon won't get MsgWaitForMultipleObjectsEx()
out of the wait state for some reason, although I am calling MsgWaitForMultipleObjectsEx()
with QS_ALLEVENTS
wake mask.
I use WM_USER
+ ... for NOTIFYICONDATA::uCallbackMessage
, and I also tried to use a "concrete" value (WM_MOVE
,...) instead. Didn't help.
Did anyone ever faced this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您没有尝试过使用 QS_ALLINPUT 而不是 QS_ALLEVENTS 吗?
Haven't you tried with QS_ALLINPUT instead of QS_ALLEVENTS?