Minimize window via style change
Dmitry Timoshkov
dmitry at codeweavers.com
Sat Sep 23 06:15:52 CDT 2006
"Sebastian Reichelt" <SebastianR at gmx.de> wrote:
> + if (winpos->flags & SWP_FRAMECHANGED)
> + {
> + DWORD style = GetWindowLongW( winpos->hwnd, GWL_STYLE );
> + X11DRV_set_iconic_state( winpos->hwnd );
> + if (style & WS_MINIMIZE)
> + return TRUE;
> + }
> +
> if (!SWP_DoWinPosChanging( winpos, &newWindowRect, &newClientRect )) return FALSE;
>
> /* Fix redundant flags */
X11DRV_set_iconic_state() call should be moved under the 'if' case.
Next, you can't really avoid calling SWP_DoWinPosChanging and probably
sending WM_WINDOWPOSCHANGED. This behaviour needs a good test case.
--
Dmitry.
More information about the wine-devel
mailing list