TrayIcon wraps Shell_NotifyIconW. It shows an icon with a tooltip in the
notification area, optionally a balloon notification and a right-click context
menu, and fires onDoubleClicked when the icon is double-clicked (the usual
"restore the window" gesture).
The icon sends its mouse notifications to the owner window as a private
application message; Window routes that message here via
dispatchTrayMessage. Call remove() before the owner window is torn down —
a lingering tray icon can leave screen-reader focus in a bad state.
System tray (notification area) icons.
TrayIcon wraps Shell_NotifyIconW. It shows an icon with a tooltip in the notification area, optionally a balloon notification and a right-click context menu, and fires onDoubleClicked when the icon is double-clicked (the usual "restore the window" gesture).
The icon sends its mouse notifications to the owner window as a private application message; Window routes that message here via dispatchTrayMessage. Call remove() before the owner window is torn down — a lingering tray icon can leave screen-reader focus in a bad state.