Click here to Skip to main content
15,891,871 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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....
Posted

Perhaps this article will help
 
Share this answer
 
Comments
Henry Minute 6-Feb-11 14:35pm    
Excellent answer.

I looked for something as clear as that when the question was first posted but couldn't find anything as good.
fjdiewornncalwe 6-Feb-11 14:37pm    
I've found that searching the CP articles is always a good first step. A lot of these types of questions have been dealt with already. Cheers.
Henry Minute 6-Feb-11 14:39pm    
Did that but my (usually terrific) google-fu let me down. :)
Espen Harlinn 6-Feb-11 15:05pm    
Excellent, a 5
fjdiewornncalwe 7-Feb-11 8:48am    
OP's Comment moved from answer:
Thanks for the reply...
My requirement is to show balloon tooltip when a mouse move over tray icon. Now only standard tooltip is being shown..instead balloon I have to display.
I have used callback message WM_NOTIFYME
and used the same in MessageMap. In the mapped function I have called a function which is used to display the balloon tip in a condition on WM_MOUSEMOVE.
when i tried to debug, the function is getting called after the installation gets over and the icon removed from the tray...
Is it because the messages are going to queue stage?Please help...
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..:)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900