Printable View
How can i know if my window is being minimized?
WM_SIZE or WM_ACTIVATE.
You can also get notfied of the minimize command before it is carried out using WM_SYSCOMMAND.