Solved

removing systray icons

Posted on 2003-11-14
8
712 Views
Last Modified: 2010-04-05
Is it possible to remove another program's systray icon from my app? If so, how?
0
Comment
Question by:lopardo2003
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 2

Expert Comment

by:TheLeader
ID: 9754514
theres two way (immediate)
1- hide it.
2- kill the process.

and theres also two way (after restart)
1- remove it from startup menu.
2- remove it from registry.
0
 
LVL 2

Expert Comment

by:TheLeader
ID: 9754518
what are you looking for exactly ?
0
 

Author Comment

by:lopardo2003
ID: 9755353
I don't want to close the other program, I just want to remove or hide another's program systray icon from my program. For example, if you configure Winamp to stay on the systray, I'd like to remove that icon but keeping Winamp running.
0
 
LVL 2

Expert Comment

by:TheLeader
ID: 9757118
i think this is what you are looking for
AM Softwares AMWinEnv v.1.1
http://www.torry.net/windows.htm
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Expert Comment

by:Silker
ID: 9758534
You have to know some things about the specified icon in the tray.Each program that puts it's icon in the tray passes a WM_COPYDATA message to the taskbar.The lParam (I think ) is a pointer to a TNotifyIconData that helds information about the icon in the tray.If you manage to subclass the taskbar and intercept the message you will have this structure and with Shell_NotifyIcon(NIM_DELETE,@...) we will be able to hide the icon
0
 

Expert Comment

by:Silker
ID: 9761979
Sorry , I was wrong. The lParam is a Pointer to a PCopyDataStruct.You can extract TNotifyIconData from PCopyDataStruct lpData member (PNotifyIconData(Integer(PByte(copyData.lpData))+8)) where copyData is of type
PCopyDataStruct
0
 
LVL 20

Accepted Solution

by:
Madshi earned 100 total points
ID: 9797594
You can do that by using "madKernel", which is free for non-commercial purpose (only). E.g. this:

uses madKernel;

begin
  Process('msimn.exe').TrayIcons.Delete;  // hide Outlook's tray icons
end;

http://help.madshi.net/TrayIcons.htm#ITrayIcons.Delete
0
 

Author Comment

by:lopardo2003
ID: 9798985
It works perfectly, thanks a lot! :-)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now