From 0de71bfe219e74c12dd86ebb133d266e2d369126 Mon Sep 17 00:00:00 2001 From: dreamforceinc Date: Sat, 2 Mar 2024 15:57:05 +0300 Subject: [PATCH] Fixed tray icon handling after Explorer restarts. --- wCenterWindow/wCenterWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wCenterWindow/wCenterWindow.cpp b/wCenterWindow/wCenterWindow.cpp index b65ec06..4825388 100644 --- a/wCenterWindow/wCenterWindow.cpp +++ b/wCenterWindow/wCenterWindow.cpp @@ -385,9 +385,9 @@ LRESULT CALLBACK WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lPar default: { if (message == uMsgRestore) { - Shell_NotifyIconW(NIM_DELETE, &nid); - Shell_NotifyIconW(NIM_ADD, &nid); - Shell_NotifyIconW(NIM_SETVERSION, &nid); + logger.Out(L"%s(%d): Recieved the 'TaskbarCreated' message", TEXT(__FUNCTION__), __LINE__); + + HandlingTrayIcon(); break; } return DefWindowProcW(hMainWnd, message, wParam, lParam);