alex
alex

Reputation: 51

how to get the tray icons

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)?

Upvotes: 5

Views: 2762

Answers (2)

Bob
Bob

Reputation: 99814

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

Upvotes: 1

jheddings
jheddings

Reputation: 27573

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.

Upvotes: -1

Related Questions