forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Refreshing All Icons in System Tray

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Sun Jun 04, 2006 2:34 pm    Post subject: Refreshing All Icons in System Tray Reply with quote

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 ! Wink
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jun 05, 2006 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
GregLand
Valued Contributor
Valued Contributor


Joined: 15 Jun 2004
Posts: 212
Location: FRANCE

PostPosted: Mon Jun 05, 2006 6:47 pm    Post subject: Reply with quote

Thank a lot dragonsphere I will read that...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group