<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">you can also wait a couple of weeks, after I submit code changes for taskbar and system tray integration. VBoxTray needs to be changed.<BR><BR>--- On <B>Tue, 7/20/10, Andreas Löffler <I><andreas.loeffler@oracle.com></I></B> wrote:<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: Andreas Löffler <andreas.loeffler@oracle.com><BR>Subject: Re: [vbox-dev] a minor VBoxTray bug - need to handle "TaskbarCreated" message<BR>To: vbox-dev@virtualbox.org<BR>Date: Tuesday, July 20, 2010, 4:56 AM<BR><BR>
<DIV class=plainMail>Hi,<BR><BR>thanks for the suggestion; I'll try to look into this issue in the near <BR>future (along with refactoring the code a bit).<BR><BR>Regards,<BR>-Andreas.<BR><BR><BR>> <A href="http://msdn.microsoft.com/en-us/library/cc144179" target=_blank>http://msdn.microsoft.com/en-us/library/cc144179</A>(VS.85).aspx<BR>> has some info<BR>> when Explorer.exe is killed, and restart, the system tray icon dispears,<BR>> because it doesn't handle "TaskbarCreated" message.<BR>> The correction can be done as follows:<BR>><BR>> LRESULT CALLBACK WndProc(HWND hWnd,<BR>>                           UINT uMessage,<BR>>                           WPARAM wParam,<BR>>                           LPARAM
 lParam)<BR>> {<BR>>      static UINT s_uTaskbarRestart;<BR>><BR>>      switch(uMessage)<BR>>      {<BR>>          case WM_CREATE:<BR>>              s_uTaskbarRestart = RegisterWindowMessage(TEXT("TaskbarCreated"));<BR>>              break;<BR>><BR>>          default:<BR>>              if(uMessage == s_uTaskbarRestart)<BR>>                  AddTaskbarIcons();<BR>>              break;<BR>>      }<BR>><BR>>      return DefWindowProc(hWnd, uMessage, wParam, lParam);<BR>> }<BR>><BR>><BR>><BR>> _______________________________________________<BR>> vbox-dev mailing list<BR>> <A
 href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR>> <A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR><BR>_______________________________________________<BR>vbox-dev mailing list<BR><A href="http://us.mc343.mail.yahoo.com/mc/compose?to=vbox-dev@virtualbox.org" ymailto="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</A><BR><A href="http://vbox.innotek.de/mailman/listinfo/vbox-dev" target=_blank>http://vbox.innotek.de/mailman/listinfo/vbox-dev</A><BR></DIV></BLOCKQUOTE></td></tr></table>