Hi,
How can I refresh the system tray after closing
an application than run in the system tray ?
TIA,
Eddie
Printable View
Hi,
How can I refresh the system tray after closing
an application than run in the system tray ?
TIA,
Eddie
I think it refreshes itself when an action like that is performed. Anyway you can use the UpdateWindow API.
Public Declare Function UpdateWindow Lib "user32" Alias "UpdateWindow" (ByVal hwnd As Long) As Long
Code:UpdateWindow hwndofsystray
Thanks , but it doesn't work.
If what your doing is, after your application has unloaded, you want to remove that Icon from the System tray, then just run this.
This will remove the icon from the system tray.Code:Shell_NotifyIcon NIM_DELETE, yourIconDataObject
NOTE: You must provide a constant for NIM_DELETE