On Friday, January 6, 2023 at 11:22:12 AM UTC, R.Wieser wrote:
Hello all,
I'm dragging and/or resizing individual controls by sending them a SC_DRAGMOVE family message. That works.
The problem is that when I give the control a WS_BORDER attribute (causing a black, single-pixel wide border to be drawn) than a number of the basic controls (static, edit, others) get a forced minimum size (which does seem to match the minimum width and height of a dialog).
Question : Can, and if so how do I tell the move/size executing code *not* to apply those minimum size contraints ?
Can you intercept the WM_GETMINMAXINFO message? As far as I can tell, Windows sends this to a window as part of its check that a proposed new window size is actually OK, you just need to grab this message and "reply" saying that the current size of the
window is indeed OK so there's no need for Windows to apply an unwanted default.
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)