[Bug 20190] HOMMV Map Editor pane shrinks on every refresh ( Unhandled query type 4)

wine-bugs at winehq.org wine-bugs at winehq.org
Mon Jan 21 06:05:38 CST 2019


https://bugs.winehq.org/show_bug.cgi?id=20190

Paul Gofman <gofmanp at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gofmanp at gmail.com

--- Comment #13 from Paul Gofman <gofmanp at gmail.com> ---
Created attachment 63333
  --> https://bugs.winehq.org/attachment.cgi?id=63333
user32: Add more checks for hwndInsertAfter with child windows in
USER_SetWindowPos().

The game is using SetWindowPos on its render child window with the coordinates
obtained by GetClientRect() for the same window. Window and client rect are not
the same as the window has WS_EX_CLIENTEDGE extended style. The border size is
2, and this is the actual case on Windows 7 where I tested it too. But on
Windows this SetWindowPos simply does nothing for a child window (while it
currently does the resize in Wine):

SetWindowPos(000902aa,fffffffe,00000000,00000000,00000183,00000149,00000040)

I am attaching the patch as a proof of concept which fixes the issue for me.
The patch also has a test. This is a purely proof of concept patch, I would not
recommend anyone to use it for anything else, as even if the patch is correct
by itself (which I am not fully sure of yet), it still can break a lot of
things if Wine uses SetWindowPos in a way it used to work without this patch.

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list