native-windows-gui icon indicating copy to clipboard operation
native-windows-gui copied to clipboard

support multiple tray icons per parent

Open RavuAlHemio opened this issue 3 years ago • 0 comments

Just like a parent (HWND) can have multiple timers, it can have multiple notification area icons (TrayNotifications) differentiated by an ID. Use similar functionality as with timers to extend support to multiple icons per parent.

The Shell_NotifyIconW(NIM_SETVERSION, &mut data); call is necessary to ensure that the icon ID is passed in the expected format to process_events(...), as the version field is ignored otherwise (well, interpreted as the timeout value). This has been previously pointed out by @iquanxin in issue #246.

RavuAlHemio avatar Oct 20 '22 18:10 RavuAlHemio