ShowWindow(SW_SHOWMAXIMIZED) should ignore WS_MAXIMIZE window state [Bug:1735]

Vitaliy Margolen wine-patch at kievinfo.com
Thu Nov 24 11:00:14 CST 2005


With some tests to show the correct behavior. This causing problems when window
is created with WS_MAXIMIZED state set, but had it's size changed before
call to ShowWindow. This affects Delphi programs which reads windows
design time state from the resources. Which most of the time doesn't have
correct maximized size. 

ChangeLog:
ShowWindow(SW_SHOWMAXIMIZED) should ignore WS_MAXIMIZE window state.
CreateWindow(WS_MAXIMIZE | WS_VISIBLE) should use ShowWindow(SW_SHOW) instead of SW_SHOWMAXIMIZED.
Add few tests to verify the correct behavior.

 dlls/user/tests/msg.c |  159 +++++++++++++++++++++++++++++++++++++++++++++++++
 dlls/user/win.c       |    2 -
 2 files changed, 160 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2cf3c65dfa506c40701b3a6f1df7a0cc7c46441a.diff
Type: text/x-patch
Size: 8604 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20051124/3f161d18/2cf3c65dfa506c40701b3a6f1df7a0cc7c46441a.diff


More information about the wine-patches mailing list