| View previous topic :: View next topic |
| Author |
Message |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Sun Jun 04, 2006 2:34 pm Post subject: Refreshing All Icons in System Tray |
|
|
Hello Every Body...
Do you know if theres an API or a way to refresh all icons in the system tray ?
I saw some post (1, 2,3 ... ) about refreshing the icon of the current app, but is there a way to refresh all icons in the systray (After an explorer crash for exemple)...
Thanks for all !  |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Mon Jun 05, 2006 3:40 pm Post subject: |
|
|
Gregland,
Not really. The individual applications manage their own systray Icons. They are supposed to respond to a window message that the system created called TaskbarCreated. If you have a application that does not restore it's icon on an Explorer restart send the company the URL below and ask them to upgrade their application to handle the TaskbarCreated API message.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/Shell/programmersguide/shell_int/shell_int_programming/taskbar.asp
To get the message ID for the TaskbarCreated message they can call the Win32 API function RegisterWindowMessage when their program starts and everytime their message loop recieves this message they should tell the system tray to redraw the Icon by calling the Win32 API function Shell_NotifyIcon with the NIM_ADD message. All of this is documented at the URL above. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
GregLand Valued Contributor


Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Mon Jun 05, 2006 6:47 pm Post subject: |
|
|
Thank a lot dragonsphere I will read that...  |
|
| Back to top |
|
 |
|