开发者

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 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜