Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Hide ICON of an external appication on system tray

Posted on 2008-06-23
Medium Priority
Last Modified: 2011-10-19
Hi Experts!
Here code hide the clock in the system tray
function ShowTrayClock(bValue: Boolean) : Boolean;
 TrayWnd, TrayNWnd, ClockWnd: HWND;
 TrayWnd  := FindWindow('Shell_TrayWnd', nil);
 TrayNWnd := FindWindowEx(TrayWnd, 0, 'TrayNotifyWnd', nil);
 ClockWnd := FindWindowEx(TrayNWnd, 0, 'TrayClockWClass', nil);
 Result := IsWindow(ClockWnd);
if Result then
   ShowWindow(ClockWnd, Ord(bValue));
   PostMessage(ClockWnd, WM_PAINT, 0, 0);
i need hide icons of another application, for example: Internet Download Manager,...
Question by:j88
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 38

Expert Comment

by:Geert Gruwez
ID: 21845426
i imagine you would need to find the windows handle of the tray icon

use winsight that comes with Delphi
when you move the mouse over the tray icon you'll get messages for that window handle.

the next thing would be to find out the unique number for that icon, it's in the NOTIFYICONDATA

then you can send a msg NIM_DELETE for that icon
the application may of course update the icon after you deleted it

LVL 26

Accepted Solution

Russell Libby earned 500 total points
ID: 21845800
Take a look at the SystemTray source code I provided in the following paq.


this will let you enumerate all the tray icons, and interact with them as well. In this case, you would just set the .Visible property for each to false. Let me know if you need assistance using the code.

LVL 38

Expert Comment

by:Geert Gruwez
ID: 21846268
why do you make life so much easier

been looking for this too man !

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 13

Expert Comment

ID: 21847741
Goto madshi.net and get madcollection for the madKernel.


Makes this so much easier.

Author Comment

ID: 21861818
Thank you very much Russell!
LVL 26

Expert Comment

by:Russell Libby
ID: 21862040
Very welcome.

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question