#1366 Minimal size window

open
nobody
None
5
2014-12-01
2013-06-19
v77
No

Don't know if it is a patch or not, so I post this here.

In order to prevent that the dialog boxes are too much reduced, like that:
http://img15.hostingpics.net/pics/913797Capture.png

You can process the WM_GETMINMAXINFO message by setting the ptMinTrackSize member of the MINMAXINFO structure pointed by lParam. This could give something like that:

case WM_GETMINMAXINFO:
((MINMAXINFO*)lParam)->ptMinTrackSize.x = 300;
((MINMAXINFO*)lParam)->ptMinTrackSize.y = 200;
return TRUE;

Of course, this constants are arbitrary and should be calculated for each dialog box.

Discussion

  • Michael Barber
    Michael Barber
    2014-12-01

    This patch can be applied to the 9.22 version of the source code and will calculate the minimum size of all windows to prevent them from being reduced by too much. Just apply the patch and re-compile the source code.

     
    Attachments