I am making my own taskbar which will replace the default windows one. How do I get a list of everything that is in t开发者_如何学Che system tray (notification area)?
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
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.
精彩评论