Could you tell me how you use TaskbarCreated to put the icon on the system tray?

Thanks!

--- On Tuesday, May 10, 2005 4:21 PM, Magnus Tullock scribed: ---
>
> Hi,
>   I have a number of service applications that use the TaskbarCreated
> message to bung an icon into the system tray when a user logs on.
> 
>   Under NT, Win2K and XP, if I log off, then log on again, my tray
> icon re-appears  (which is good).  The service starts without a user
> being logged on to the desktop, but when a user does log on, I want
> my tray icon to appear, and usually it does.
> 
>   However under XP, and only XP ('coz that's the only windows OS that
> supports it), if I switch users, my service doesn't get the
> TaskbarCreated message, so I don't get the tray icon.
> 
>   Any ideas how to find out that a user-switch has happened and how
> to deal with it?
> 
>   My tray icon does not use any components, I'm using raw API calls.
> 
> Magnus
> 
> 
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi

_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to