Solved

removing systray icons

Posted on 2003-11-14
8
715 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 211
Intraweb download file link ? 1 109
Multiple image collision 13 69
Is anyone willing to have a look through this code and help debug? 25 57
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…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

910 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

20 Experts available now in Live!

Get 1:1 Help Now