I want to catch the event when my form is being minimized.
I have added WndProc messages for SC_Minimize for WM_SYSCommand. But it doesn't hit when Win+D is pressed or Win+M is pressed or Peek Desktop button is clicked.
I have added keyboard hook for Win+D and Win+M but still troubled for the third option.
Is there any windows event or WndProc message I can track that will notify me as soon as the button is clicked.
My form size is changed If I use WM_Size so any are there any message which is directly linked to it.
Thanks, Aman