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);