From: <no...@so...> - 2002-11-20 14:39:37
|
Update of /cvsroot/ijbswa/current In directory sc8-pr-cvs1:/tmp/cvs-serv4897 Modified Files: Tag: v_3_0_branch w32taskbar.c Log Message: Applied patch by Mattes Dolak which adds re-creation of the win32 taskbar icon on reception of the "TaskbarCreated" window message. Index: w32taskbar.c =================================================================== RCS file: /cvsroot/ijbswa/current/Attic/w32taskbar.c,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -u -d -r1.7 -r1.7.2.1 --- w32taskbar.c 31 Mar 2002 17:19:00 -0000 1.7 +++ w32taskbar.c 20 Nov 2002 14:39:32 -0000 1.7.2.1 @@ -32,6 +32,10 @@ * * Revisions : * $Log$ + * Revision 1.7.2.1 2002/11/20 14:39:32 oes + * Applied patch by Mattes Dolak which adds re-creation of the win32 taskbar + * icon on reception of the "TaskbarCreated" window message. + * * Revision 1.7 2002/03/31 17:19:00 jongfoster * Win32 only: Enabling STRICT to fix a VC++ compile warning. * @@ -78,6 +82,7 @@ static HMENU g_hmenuTray; static HWND g_hwndTrayX; +static UINT g_traycreatedmsg; static LRESULT CALLBACK TrayProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); @@ -113,6 +118,9 @@ RegisterClass(&wc); + /* TaskbarCreated is sent to a window when it should re-add its tray icons */ + g_traycreatedmsg = RegisterWindowMessage("TaskbarCreated"); + g_hwndTrayX = CreateWindow(szWndName, szWndName, WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL ); @@ -273,7 +281,11 @@ return 0; default: - /* DO NOTHING */ + + if (msg == g_traycreatedmsg) + { + TrayAddIcon(g_hwndTray, 1, g_hiconApp, "Privoxy"); + } break; } |