Fixed tray icon handling after Explorer restarts.
This commit is contained in:
@@ -385,9 +385,9 @@ LRESULT CALLBACK WndProc(HWND hMainWnd, UINT message, WPARAM wParam, LPARAM lPar
|
|||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if (message == uMsgRestore) {
|
if (message == uMsgRestore) {
|
||||||
Shell_NotifyIconW(NIM_DELETE, &nid);
|
logger.Out(L"%s(%d): Recieved the 'TaskbarCreated' message", TEXT(__FUNCTION__), __LINE__);
|
||||||
Shell_NotifyIconW(NIM_ADD, &nid);
|
|
||||||
Shell_NotifyIconW(NIM_SETVERSION, &nid);
|
HandlingTrayIcon();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return DefWindowProcW(hMainWnd, message, wParam, lParam);
|
return DefWindowProcW(hMainWnd, message, wParam, lParam);
|
||||||
|
|||||||
Reference in New Issue
Block a user