How to get tray icons

I create my own taskbar that will replace the default windows. How to get a list of everything that is on the taskbar (notification area)?

+3
source share
2 answers

FindWindow with a class name Shell_TrayWndcan provide you with 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

+2
source

If you are trying to create an icon in the notification area (usually next to the clock on the taskbar), see the NotifyIconclass. The docs have an example of creating a notification icon with a context menu.

0
source

Source: https://habr.com/ru/post/1724138/


All Articles