[Bug 4964] New: MDI child not informed of max/minimization
wine-bugs at winehq.org
Fri Mar 31 08:16:55 CST 2006
Summary: MDI child not informed of max/minimization
AssignedTo: wine-bugs at winehq.org
ReportedBy: juris.smotrovs at sets.lv
Wine does not send WM_SIZE message to MDI child if it has been
maximized/minimized so that its size in pixels remains unchanged.
According to MSDN:
, WM_SIZE should be sent also if the window has become max/minimized, regardless
of whether its size in pixels has changed.
In Wine the WM_SIZE message is sent if the flag SWP_NOCLIENTSIZE is not set
(see dll/user/defwnd.c, DEFWND_HandleWindowPosChanged(...) ).
However, this flag is set always (see dll/x11drv/winpos.c,
SWP_DoWinPosChanging(...) ), unless the window size in pixels has changed
(see dll/x11drv/winpos.c, SWP_DoNCCalcSize(...) ).
Thus, if the size in pixels has not changed, WM_SIZE is not sent at
A typical situation when this error occurs, is if the application
adjusts the size of MDI child to the size of the frame window,
so that at maximization the actual size in pixels turns out to be the same.
I will attach a testcase and a patch shortly.
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the wine-bugs