deft.controls.trayicon

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.

Members

Classes

TrayIcon
class TrayIcon

A notification-area icon owned by a top-level window.

Functions

dispatchTrayMessage
bool dispatchTrayMessage(uint id, uint mouseMsg)

Route a tray callback message to the matching TrayIcon.

Variables

trayCallbackMessage
enum UINT trayCallbackMessage;

Private window message the tray icon uses to report mouse activity.

Meta