Notify, when Icon appears.

delphi package - easy access to kernel objects etc.
Post Reply
neji
Posts: 155
Joined: Wed Mar 09, 2005 11:39 am
Contact:

Notify, when Icon appears.

Post by neji »

Hello,

Mozilla Thunderbird has a TrayIcon when new Mails are received. Is there a way to be notified when this happens?

I know i can do this with a timer, but this is less performant isn't it?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Notification is possible, but only by hooking into tray icon stuff. You might be able to do that by subclassing the SysTray window. The easier solution would be to use madCodeHook to hook the Shell_NotifyIcon API. However, this all might be overkill. Polling the tray icons every few seconds seems to be the ugly but cheap way to solve the problem.
Post Reply