I need to disable all resizing but by WMSZ_BOTTOM
, including disabling corresponding mouse icons.
Processing WM_GETMINMAXINFO
doesn't help, because it is called before window rectangle gets adjusted (inside WM_CREATE
), so I have nothing to set into it. I tried to copy the current rectangle and set it on WM_SIZING
into lParam
, but there's no perfect point when to call GetWindowRect()
for that copy, because sometimes when I move my window and then resize it by dragging the unintended sides, it jumps to the previous position (old rect gets restored). And these look like hacking instead of some smart method.
And how to disable resizing mouse icon when it hovers over window borders other than bottom?
Alt+Space, S
keyboard shortcut for resizing? E.g if you doAlt+Space, S, RightArrow
this allows you to resize the right border using the keyboard. – Ben