How to catch the events when you click on the application's icon on the taskbar?

It’s the WM_NC class messages. For example, you can handle the WM_NCLBUTTONDBLCLK message.

And you can alse reponsible the  WM_SYSCOMMAND messages.  In particular, the special cases of SC_MINIMIZE and SC_MAXIMIZE are what are called from the system menu, which is what is available from the taskbar.

Tags: ,