Author: akhaldi
Date: Fri Jun 26 17:18:26 2015
New Revision: 68280
URL:
http://svn.reactos.org/svn/reactos?rev=68280&view=rev
Log:
[KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze.
CORE-9869
Modified:
trunk/reactos/base/applications/kbswitch/kbswitch.c
Modified: trunk/reactos/base/applications/kbswitch/kbswitch.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/kbswitch…
==============================================================================
--- trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/kbswitch/kbswitch.c [iso-8859-1] Fri Jun 26 17:18:26
2015
@@ -390,6 +390,7 @@
{
static HMENU hRightPopupMenu;
static TCHAR szLCID[MAX_PATH], szLangName[MAX_PATH];
+ static UINT s_uTaskbarRestart;
switch (Message)
{
@@ -400,6 +401,7 @@
hRightPopupMenu = GetSubMenu(LoadMenu(hInst, MAKEINTRESOURCE(IDR_POPUP)),
0);
ActivateLayout(hwnd, ulCurrentLayoutNum);
+ s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated"));
return 0;
}
@@ -506,6 +508,11 @@
return 0;
}
+
+ default:
+ if(Message == s_uTaskbarRestart)
+ AddTrayIcon(hwnd);
+ break;
}
return DefWindowProc(hwnd, Message, wParam, lParam);