Thread '[Wish] Re-Add the tray icon after the taskbar creation'

Message boards : BOINC Manager : [Wish] Re-Add the tray icon after the taskbar creation
Message board moderation

To post messages, you must log in.

AuthorMessage
Yin Gang

Send message
Joined: 21 Sep 05
Posts: 12
China
Message 688 - Posted: 11 Oct 2005, 4:51:14 UTC
Last modified: 11 Oct 2005, 4:54:13 UTC

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!
ID: 688 · Report as offensive
Rom Walton
Project developer
Avatar

Send message
Joined: 26 Aug 05
Posts: 164
Message 690 - Posted: 11 Oct 2005, 21:26:20 UTC
Last modified: 11 Oct 2005, 21:26:31 UTC

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
ID: 690 · Report as offensive
Yin Gang

Send message
Joined: 21 Sep 05
Posts: 12
China
Message 694 - Posted: 13 Oct 2005, 8:17:17 UTC

Btw, it's v4.45 that I'm using, which was installed as a system service.


Welcome To Team China!
ID: 694 · Report as offensive
Paul D. Buck

Send message
Joined: 29 Aug 05
Posts: 225
Message 695 - Posted: 13 Oct 2005, 15:04:16 UTC

Hmmm, is that code in the Daemon or manager? or both?
ID: 695 · Report as offensive
Rom Walton
Project developer
Avatar

Send message
Joined: 26 Aug 05
Posts: 164
Message 703 - Posted: 17 Oct 2005, 23:44:58 UTC

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
ID: 703 · Report as offensive
Yin Gang

Send message
Joined: 21 Sep 05
Posts: 12
China
Message 2102 - Posted: 20 Dec 2005, 4:03:55 UTC - in response to Message 703.  

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.

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.




Welcome To Team China!
ID: 2102 · Report as offensive

Message boards : BOINC Manager : [Wish] Re-Add the tray icon after the taskbar creation

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.