I want to limit the resize range of a windows width based on the height. I do this via WM_GETMINMAXINFO
, but there is a quirk (at least in Win10). If at the time of starting the resize and my window height supports a minimum width of say 80, it never goes below 80. As I am dragging if I reduce the height so that it changes the minimum width to be 100, it honors that, but if I dragged and increased the height so the minimum width changes to 60, it still stops at 80 (the WM_GETMINMAXINFO
is being called all along the way). Is there a trick to get it to work?
One trick I thought of is if I could detect the start of the resize, i could just use some minimum of something like 10, but then the next requests would use the actual real values and would solve the issue. Any thoughts?
TIA!!