System Tray Icon in C++

32.8k Views Asked by At

I got a basic window made from C++. What I need to do is whenever I click the Minimize button the window will be placed in the System Tray and whenever I double click on the Icon it will restore...

2

There are 2 best solutions below

1
On BEST ANSWER

check msdn about a struct: NOTIFYICONDATA and a function:

BOOL Shell_NotifyIcon( DWORD dwMessage,PNOTIFYICONDATA lpdata);


and also a demo here.

Hope you can understand:)

3
On

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