Notify on Hint change

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

Notify on Hint change

Post by neji »

Hi, I need to be notified when a trayicons hint changes. I could use a timer that checks the hint, but is there a more elegant way to do this?
madshi
Site Admin
Posts: 10754
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

You could hook the Shell_NotifyIcon API (or however the API is named). I'd suggest to inject the hook dll only into the target process to make it all less intrusive.
neji
Posts: 155
Joined: Wed Mar 09, 2005 11:39 am
Contact:

Post by neji »

Thank you, had the same idea and it seems to work quite fine :D
Post Reply