[PATCH 2/2] user32: Set WM_NOSIZE for windows smaller than SM_CXMINTRACK/SM_CYMINTRACK.

Alexandre Julliard julliard at winehq.org
Thu Jul 10 10:35:50 CDT 2008

"Lei Zhang" <thestig at google.com> writes:

> I added more tests for this and also looked at the trace log from the
> tests. My last patch was definitely wrong because it prevents the
> window/client size from changing, whereas they do change on Windows. I
> check for this in the tests now.
> I looked at the content of the WM_WINDOWPOSCHANGED messages, and I
> noticed SWP_NOCLIENTSIZE was set for the cases where the window is too
> small. So SWP_DoNCCalcSize seems like the right place to check for
> this, and not clear SWP_NOCLIENTSIZE.

You are still on the wrong track, you shouldn't mess with the SWP_*
flags at all. What you have to do is figure out where the size limits
should be enforced on the window; once you fix this, SetWindowPos will
automatically get the right flags because the size will be clamped to
the limit.

Alexandre Julliard
julliard at winehq.org

More information about the wine-devel mailing list