> >I have a program which is called from my vfp app that has a system tray > >icon associated with it. The vfp app controls the program and it's also > >closes it as well. When the external app is closed the icon in the > >system tray is not removed until you move the mouse over it. Does > >anyone know of a way to refresh the system tray at all?
> I don't think "refreshing" the system tray will cure the problem. Many > apps "close", but leave a process running with an icon in the system > tray. It takes programmatic action thru the API to put an icon in the > tray, I suspect it takes some more to take it out. > > I'd look at the process list to see if there's something still running. If > there is, figure out how to get the external app to kill it.
No, the problem that's being discussed, is that if an app isn't closed properly, it doesn't issue the "remove from tray" code, and hence the tray never gets updated. Moving the mouse over it forces it to update, and therefore removes the orphaned icon. You can try it yourself-- run some useless program that uses a systray icon(aren't they all?). Now, kill it with task manager, and look at your systray-- the icon is still there. Move your mouse over it, and watch it disappear...
-- Derek
©2005 Derek Kalweit |