Article View: comp.os.ms-windows.programmer.tools.mfc
Article #140How to Kill a Tray icon from an another application ?
From: CG
Date: Fri, 17 Nov 2000 00:00
Date: Fri, 17 Nov 2000 00:00
16 lines
1783 bytes
1783 bytes
In my program, I make a system kill of an application that have an icon tray in the traybar... But the problem is that the icon isn't kill properly by the killed application to the task icon remains here. The only way to delete the tray icon is to move the mouse over the tray icon, but I'd like to di it in my programm after I kill the application. I try something like that : hwndTaskBar = FindWindowEx (NULL, NULL, "Shell_TrayWnd", NULL); hwndTrayWnd = FindWindowEx (hwndTaskBar , NULL, "TrayNotifyWnd", NULL); and then SendMEssage (hwndTrayWnd , WM_PAINT, 0, 0); but it doesn't work. Any idea ??? Chris.
Technical Details
Message-ID:
<FU8R5.763$%o6.2878648@nnrp3.proxad.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,d00bad325b1977a5,start X-Google-Attributes: gid1138df,public X-Google-Thread: 113dfb,d00bad325b1977a5,start X-Google-Attributes: gid113dfb,public X-Google-Thread: 104d65,d00bad325b1977a5,start X-Google-Attributes: gid104d65,public X-Google-Thread: 1053e6,d00bad325b1977a5,start X-Google-Attributes: gid1053e6,public X-Google-Thread: f5082,d00bad325b1977a5,start X-Google-Attributes: gidf5082,public From: "CG" <cgranottier@nospamseres.fr> Subject: How to Kill a Tray icon from an another application ? Date: 2000/11/17 Message-ID: <FU8R5.763$%o6.2878648@nnrp3.proxad.net> X-Deja-AN: 694702520 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Complaints-To: abuse@proxad.net X-Trace: nnrp3.proxad.net 974461605 212.27.61.191 (Fri, 17 Nov 2000 12:46:45 CET) Organization: Guest of ProXad - France X-MSMail-Priority: Normal NNTP-Posting-Date: Fri, 17 Nov 2000 12:46:45 CET Newsgroups: comp.os.ms-windows.programmer.tools.mfc,comp.os.ms-windows.programmer.win32,fr.comp.os.ms-windows.programmation,microsoft.public.fr.vc,microsoft.public.vc.mfc