VC ++-ShellNotify气球弹出 [英] VC++ - ShellNotify Balloon Pop Up

查看:87
本文介绍了VC ++-ShellNotify气球弹出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨..
我想在鼠标悬停在任务栏图标上时显示气球弹出窗口.
问题是应用程序正在执行某些操作...我想显示气球中执行的任务而不是标准工具提示...当用户将鼠标移到任务栏图标上时...
我可以通过使用NOTIFYICONDATA来显示气球...但是我没有得到如何处理可以映射鼠标悬停事件的回调消息...
如果有人可以帮我解决这个问题,那就太好了....

Hi..
I want to show balloon popup while mouse is hovered over taskbar icon.
The problem is an application is performing some action...I want to show the task performing in a balloon rather than standard tooltip...when user moves the mouse over the taskbar icon...
I could show balloon by using NOTIFYICONDATA...But I am not getting how to handle the callback message through which i can map the mouse hover event...
It would be good if someone can help me out this....

推荐答案

也许

我找到了解决方法...
问题是,有一个子进程,而父进程正在等待子进程完成.到这个时候,所有正在发送的消息都将进入消息队列,并在进程结束后被执行.
因此,我做的不是代替为子进程调用WaitForSingleObject,而是使用do-while循环检查退出代码,还使用PeekMessage API调度在子进程运行时接收的消息.这有助于在鼠标悬停在系统任务栏图标上显示气球工具提示.希望这对也面临类似情况的人有所帮助..:)
I found the solution...
The problem was, there was a child process and the parent process was waiting for the child process to get completed. By the time whatever messages are being sent is going to the message queue and gets executed after the process gets over.
So what I did is instead of calling WaitForSingleObject for child process, I have used do-while loop to check the exit code and also called PeekMessage API to dispatch messages which is recieving while child process is running. This helps in showing the balloon tool tip over mouse hover over the system tray icon. Hope this would help some of you who also faces similar situation..:)


这篇关于VC ++-ShellNotify气球弹出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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