cairoshell / ManagedShell

A library for creating Windows shell replacements using .NET.
https://www.nuget.org/packages/ManagedShell/
Apache License 2.0
301 stars 25 forks source link

Fix tray icons for apps that use the H.NotifyIcon library #90

Closed dremin closed 10 months ago

dremin commented 10 months ago

Currently tray icons from apps that are using the H.NotifyIcon library are not working properly. The two issues are fixed in the PR:

  1. Icon update messages are coming with a GUID instead of an HWnd. Previously we ignored these messages; now we handle them using the GUID.
  2. Balloon messages were coming with a 0 value for the timeout (which makes sense, Explorer does not honor the timeout anyway). Now we use the system default timeout in this scenario.

An example application with this library is DS4Windows, which was reported in dremin/RetroBar#730.