I am making my own taskbar which will replace the default windows one. How do I get a list of everything that is in the system tray (notification area)?
Asked
Active
Viewed 2,380 times
2 Answers
1
FindWindow with the classname Shell_TrayWnd
can get you this information. Here are two sample C++ projects
http://skyscraper.fortunecity.com/gigo/311/winprog/shellico.txt
http://www.codeproject.com/KB/applications/ShellTrayInfo.aspx

Bob
- 97,670
- 29
- 122
- 130
0
If you are trying to create an icon in the notification area (usually near the clock in the taskbar), see the NotifyIcon
class. The docs have an example for creating a notification icon with a context menu.

jheddings
- 26,717
- 8
- 52
- 65
-
-
1yes because I want to change my winxp style with my own taskbar by hiding explorer.exe and getting screenshots of the running programs so that is looks really smooth when you do mouseover the sreenshot pops up, and so on. now i want to add more functions by displaying the tray icons... – alex Nov 27 '09 at 19:11
-
2You mean you want to write your own version of what Vista and Windows 7 do for use on XP? Seems cheaper and easier to just upgrade. – Ken White Nov 27 '09 at 19:18
-
thanks for this question. I am aiming just what @alex want : replace explorer as the default shell. Here is another important question regarding those : http://stackoverflow.com/questions/2081517/any-open-source-alt-tab-windows-switcher-project-exists – swdev Feb 17 '11 at 04:31