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.msdn.com/ShowPost.aspx?PostID=65017
Example provided in C by Sven Groot

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

Reply via email to