Message boards : BOINC Manager : [Wish] Re-Add the tray icon after the taskbar creation
Message board moderation
Author | Message |
---|---|
Send message Joined: 21 Sep 05 Posts: 12 |
Sometimes the explorer.exe will be restarted due to some internal errors, after that, all the tray icons should be re-added by respective applications. The following is a simplified method for handling this case (from MSDN): [PRE] LRESULT CALLBACK WndProc(HWND hWnd, UINT uMessage, WPARAM wParam, LPARAM lParam) { static UINT s_uTaskbarRestart; switch(uMessage) { case WM_CREATE: s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated")); break; default: if(uMessage == s_uTaskbarRestart) AddTaskbarIcons(); break; } return DefWindowProc(hWnd, uMessage, wParam, lParam); } [/PRE] Welcome To Team China! |
Send message Joined: 26 Aug 05 Posts: 164 |
Odd, we have code in place for this condition, and it was working some time ago. I'll look into it. ----- Rom BOINC Development Team, U.C. Berkeley My Blog |
Send message Joined: 21 Sep 05 Posts: 12 |
|
Send message Joined: 29 Aug 05 Posts: 225 |
Hmmm, is that code in the Daemon or manager? or both? |
Send message Joined: 26 Aug 05 Posts: 164 |
It is in the manager only. The manager has to be running in order for the sys tray icon to be active, in theory. I just got back from a wedding so I'll tackle this soon. ----- Rom BOINC Development Team, U.C. Berkeley My Blog |
Send message Joined: 21 Sep 05 Posts: 12 |
Hi Rom, Has this problem been fixed? I found that the tray icon still disappeared when the explorer.exe has been restarted in v5.2.13. It is in the manager only. Welcome To Team China! |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.