pub fn tray_set_version_4(tray: &TrayNotification)
Expand description
Set a tray to use version 4. Shell_NotifyIcon mouse and keyboard events are handled differently than in earlier versions of Windows.
ยงReferences
- https://learn.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shell_notifyiconw#remarks
- https://stackoverflow.com/questions/41649303/difference-between-notifyicon-version-and-notifyicon-version-4-used-in-notifyico
- Note that the NIN_KEYSELECT event will be sent twice for the enter key: https://github.com/openjdk/jdk/blob/master/src/java.desktop/windows/native/libawt/windows/awt_TrayIcon.cpp#L449