From: Amine Khaldi Date: Fri, 26 Jun 2015 17:18:26 +0000 (+0000) Subject: [KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze... X-Git-Tag: ReactOS-0.4.0~1707 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=ddbc58e7bde48dc21717fbab20c05aea73f37c6c [KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze. CORE-9869 svn path=/trunk/; revision=68280 --- diff --git a/reactos/base/applications/kbswitch/kbswitch.c b/reactos/base/applications/kbswitch/kbswitch.c index 2fb1a192641..6d58da0986c 100644 --- a/reactos/base/applications/kbswitch/kbswitch.c +++ b/reactos/base/applications/kbswitch/kbswitch.c @@ -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);