[KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze. CORE-9869

svn path=/trunk/; revision=68280
This commit is contained in:
Amine Khaldi
2015-06-26 17:18:26 +00:00
parent 1c88ff2f14
commit ddbc58e7bd
@@ -390,6 +390,7 @@ WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
static HMENU hRightPopupMenu;
static TCHAR szLCID[MAX_PATH], szLangName[MAX_PATH];
static UINT s_uTaskbarRestart;
switch (Message)
{
@@ -400,6 +401,7 @@ WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
hRightPopupMenu = GetSubMenu(LoadMenu(hInst, MAKEINTRESOURCE(IDR_POPUP)), 0);
ActivateLayout(hwnd, ulCurrentLayoutNum);
s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated"));
return 0;
}
@@ -506,6 +508,11 @@ WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
return 0;
}
default:
if(Message == s_uTaskbarRestart)
AddTrayIcon(hwnd);
break;
}
return DefWindowProc(hwnd, Message, wParam, lParam);