开发者

how to get the tray icons

开发者 https://www.devze.com 2022-12-12 22:10 出处:网络
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 Shel

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

精彩评论

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