Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-refresh tray icon if explorer.exe crashes using WM_TASKBARCREATED #272

Open
DrChat opened this issue Jun 12, 2023 · 0 comments
Open

Comments

@DrChat
Copy link

DrChat commented Jun 12, 2023

Currently, any tray icons created by NWG will disappear if the taskbar crashes and restarts.

However, there is a magic message sent across the system when the taskbar gets recreated: WM_TASKBARCREATED
You can fetch its constant using this snippet:

WM_TASKBARCREATED = RegisterWindowMessageA("TaskbarCreated") ;

It would be nice if NWG could intercept this system message and attempt to recreate any tray icons the application may have registered.

Reference:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/4185c030-d2dc-4597-8034-afe534848595/how-to-know-the-desktop-is-ready-?forum=vclanguage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant