System tray icon in C ++

I got a base window made from C ++. I need to do, when I click the Minimize button, the window will be placed in the system tray, and every time I double-click the icon, it will be restored ...

+6
c ++ winapi system-tray
source share
2 answers

check msdn about structure: NOTIFYICONDATA and function:

BOOL Shell_NotifyIcon (DWORD dwMessage, PNOTIFYICONDATA lpdata);


as well as a demo .

I hope you understand :)

+9
source share

You will need to use Shell_NotifyIcon to interact with the notification area (system tray).

+15
source share

All Articles