WM_GETMINMAXINFO is called to determine the minimum size and maximum window size that it calls during SNAP so that it does not resize the window outside its actual circled size, so if you have an application of size 500 and that has a constant height, you do not want windows Changed it in height to match the height of the screen.
Then it should call the SetWindowPlacement function.
source
share