[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

removing systray icons

Posted on 2003-11-14
8
Medium Priority
?
724 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
[X]
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
  • 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
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.

 
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
 

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 400 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 Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
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 tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

649 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