.net - How do you stop windows from resizing and moving your window? -


When I try to move my window (with the mouse) above my screen then the title bar is hidden windows Will run back And if I try to maximize the window then the screen space will change it again in the "fit" of the window screen resolution. It seems that the windows are sending a wm_move message, if it does not like the size or position, is there any way to stop it?

It seems that I can call Setvindopo and keep the window where ever I want it anytime, whatever you want. In Win32 Land, you can see the WM_MOVING , WM_SIZING / code>, and WM_WINDOWPOSCHANGING and convert them to a no-op. You probably want to handle WM_ENTERSIZEMOVE and WM_EXITSIZEMOVE .

This is really upsetting until you are writing an app for yourself.


Comments