Minimize any program in the system tray

Hey, I'm trying to create a program that minimizes any program in the system tray instead of usually minimizing it. Is it possible? I searched google but couldn't find anything.

+3
source share
1 answer

The system tray icons are called notification icons.

To do this in your own application, if you use WinForms, you can use the NotifyIcon class to display icons on the taskbar. Then all you need to do is make the window not appear on the taskbar.

WPF, , WinForms NotifyIcon, MSDN .


, API- .

FindWindow, , , GetWindowLong, Windows. WS_EX_APPWINDOW SetWindowLong, , . Get/SetWindowState / .

NotifyIcon systray.

. , , . API #, , , DllImports API . , .


Crazyd22 , API, . (. .)

+5

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


All Articles