[vbox-dev] a minor VBoxTray bug - need to handle "TaskbarCreated" message
Huihong Luo
huisinro at yahoo.com
Tue Jul 20 12:40:17 PDT 2010
you can also wait a couple of weeks, after I submit code changes for taskbar and system tray integration. VBoxTray needs to be changed.
--- On Tue, 7/20/10, Andreas Löffler <andreas.loeffler at oracle.com> wrote:
From: Andreas Löffler <andreas.loeffler at oracle.com>
Subject: Re: [vbox-dev] a minor VBoxTray bug - need to handle "TaskbarCreated" message
To: vbox-dev at virtualbox.org
Date: Tuesday, July 20, 2010, 4:56 AM
Hi,
thanks for the suggestion; I'll try to look into this issue in the near
future (along with refactoring the code a bit).
Regards,
-Andreas.
> http://msdn.microsoft.com/en-us/library/cc144179(VS.85).aspx
> has some info
> when Explorer.exe is killed, and restart, the system tray icon dispears,
> because it doesn't handle "TaskbarCreated" message.
> The correction can be done as follows:
>
> 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);
> }
>
>
>
> _______________________________________________
> vbox-dev mailing list
> vbox-dev at virtualbox.org
> http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
vbox-dev at virtualbox.org
http://vbox.innotek.de/mailman/listinfo/vbox-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.virtualbox.org/pipermail/vbox-dev/attachments/20100720/73207a6b/attachment-0001.html
More information about the vbox-dev
mailing list