ThorMX
4th April 2007 01:55 UTC
Refresh System Tray Icons
I'm looking for a way to refresh the system tray in order to remove the icons of the applications I terminated....any great ideas?
The only solution I've seen to this is to programmatically move the mouse and then move it back so the icons will update. Is there not an easier way? How would you even do that with NSIS?
Thanks in advance.
kichik
8th April 2007 16:55 UTC
The best solution is properly quitting applications and not terminating them. Usually, it's good enough to find their HWND and send WM_CLOSE. FCT first tries that and only then terminates the process.
To remove stray icons, you'll probably have to find the HWND of the tray and send it WM_MOUSEMOVE or the HWND of the terminated process and call Shell_NotifyIcon to remove the icon using the System plug-in.
gaja
30th May 2007 14:42 UTC
Re:Refresh system tray icon
Please provide me some stuff or code to refresh the system tray icon after terminating the application.
I am new user to NSIS. Please help me in this regard...
Regards,
Gaja...