Message WM_SIZE

Just by processing the WM_SIZE message, is it possible to find out if the window was restored from the minimized state?

+3
source share
3 answers

No, this is not so -

wParam will be SIZE_RESTORED (0)
and lParam will have a new window size.

If you did not save in the window when it was minimized, you will not be able to know when it will be restored only from this message.

+2
source

Not directly from the current settings.

But if you save the parameters passed to WM_SIZE every time you receive a message, then you just check to see if the last parameter SIZE_MINIMIZED passed.

0
source
0
source

Source: https://habr.com/ru/post/1760389/


All Articles