Article View: comp.os.ms-windows.programmer.tools.mfc
Article #144Re: How to Kill a Tray icon from an another application ?
From: Bob Moore
Date: Fri, 17 Nov 2000 00:00
Date: Fri, 17 Nov 2000 00:00
19 lines
1893 bytes
1893 bytes
On Fri, 17 Nov 2000 15:25:15 GMT, SNOW CRASH wrote: >Just a guess, but try and (instead) do an >InvalidateRect(hwndTrayWnd, NULL); I also came upon this problem some time ago. I tried Invalidating, and that doesn't work. I've tried enumerating the children of the tray and repainting them, and that doesn't work either. I suspect (unless someone else knows better) that Ians suggestion of inserting and removing a dummy icon may the only surefire way of doing this. -- Bob Moore [WinSDK MVP] http://www.mooremvp.freeserve.co.uk/ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Posted via news://msnews.microsoft.com Do not reply via email unless specifically requested to do so. Unsolicited email is NOT welcome and will go unanswered. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<v91b1t8217o1bufq8ggi5vpsjrl9dlbiik@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<FU8R5.763$%o6.2878648@nnrp3.proxad.net> <8v38h0$2bgf$1@nnrp01.ops.uunet.co.za> <3a154d9c.1290767305@news.dsl.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1138df,d00bad325b1977a5 X-Google-Attributes: gid1138df,public X-Google-Thread: 104d65,d00bad325b1977a5 X-Google-Attributes: gid104d65,public X-Google-Thread: 113dfb,d00bad325b1977a5 X-Google-Attributes: gid113dfb,public X-Google-Thread: f5082,d00bad325b1977a5 X-Google-Attributes: gidf5082,public X-Google-Thread: 1053e6,d00bad325b1977a5 X-Google-Attributes: gid1053e6,public From: Bob Moore <bob@mooremvp.freeserve.co.uk> Subject: Re: How to Kill a Tray icon from an another application ? Date: 2000/11/17 Message-ID: <v91b1t8217o1bufq8ggi5vpsjrl9dlbiik@4ax.com> X-Deja-AN: 694850692 Content-Transfer-Encoding: 7bit References: <FU8R5.763$%o6.2878648@nnrp3.proxad.net> <8v38h0$2bgf$1@nnrp01.ops.uunet.co.za> <3a154d9c.1290767305@news.dsl.net> Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 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