Click to See Complete Forum and Search --> : How to add actions on a tray icon ?


Cedric Le Jalle
June 2nd, 1999, 03:54 AM
Hi..
Here's my new question...How to add actions on a tray icon ? (by Tray Icon, I mean those icons appearing near the clock in the Win9x taskbar..).
I succeeded in creating the Icon and making it appear in its right place, even add tooltip to it, but I can't find the way how to know when the user clicks on it and then do something like making a menupopup appear..How can I 'catch' clicks on the Tray Icon ?
thanks in advance...
-jal-

rajasekar.s
June 2nd, 1999, 04:00 AM
hi,

u should have passed the NOTIFYICONDATA structure which contains hWnd and callbackmessage. The wndproc of the hWnd will be called with the callbackmessage. U can write a handler to do ur processing !

Enjoy,


The solutions are always there, it is only that we dont see it ...

ericpan
June 2nd, 1999, 10:30 AM
I don't know how to resolve you problem, but can you tell me how to add a icon to the right corner of taskbar, even tooltip?

thanks