[boinc_dev] Taskbar restart

Paul D. Buck p.d.buck at comcast.net
Tue Oct 11 01:26:59 PDT 2005


Good suggestion in the BOINC forum, by Yin Gang:

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):


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);

}




More information about the boinc_dev mailing list