Wow thanks a lot, i think i prefer this solution. Hopefully it will work.
 
Thanks again
 

Iwan Cahyadi Sugeng
Freelance Programmer

Interaktif Cipta Lestari
Jakarta - Indonesia

Yahoo ID: gig_boy2001
MSN ID  : iwancs


 


  _____  

From: Cord Schneider [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 07, 2007 4:26 PM
To: [email protected]
Subject: RE: [delphi-en] How to set icon on tray to reappear when
explorer.exe is restarted



Hi Iwan,

> But when the explorer.exe file is killed from the windows
> task manager and then run the explorer.exe again the tray
> icon is not redisplayed.
>
> How can I make my icon reappear on explorer.exe restart?
> other icon can do that, like outlook or opera for example.

When Explorer restarts, it notifies all top-level parent windows by
broadcasting a registered message - TaskbarCreated. Your application
should listen for this message and when it receives it, should re-create
your tray icon. There are several examples of how TaskbarCreated should
be used if you just use your old friend Google. To get you started, have
a look at the following:

http://channel9. <http://channel9.msdn.com/ShowPost.aspx?PostID=65017>
msdn.com/ShowPost.aspx?PostID=65017
Example provided in C by Sven Groot

http://www.koders.
<http://www.koders.com/delphi/fid2C110990AB3810D023D8A01E89FE16D3F7678C82>
com/delphi/fid2C110990AB3810D023D8A01E89FE16D3F7678C82
.aspx
Source code example from CoolTrayIcon.pas


 



[Non-text portions of this message have been removed]

Reply via email to