user32: fix SetWindowPos to erase parent when child is hidden

Dmitry Timoshkov dmitry at codeweavers.com
Sat Jul 21 23:50:43 CDT 2007


"Dmitry Timoshkov" <dmitry at codeweavers.com> wrote:

>>> +    HWND parent = GetAncestor( winpos->hwnd, GA_PARENT );
>>>      orig_flags = winpos->flags;
>>>      @@ -1592,7 +1593,7 @@
>>>  if((winpos->flags & (SWP_NOZORDER | SWP_HIDEWINDOW | SWP_SHOWWINDOW)) != SWP_NOZORDER)
>>>      {
>>> -        if (GetAncestor( winpos->hwnd, GA_PARENT ) == GetDesktopWindow())
>>> +        if (parent == GetDesktopWindow())
>>>              winpos->hwndInsertAfter = SWP_DoOwnedPopups( winpos->hwnd, winpos->hwndInsertAfter );
>>>      }
> 
> The changes above look not related to me, and they require a separate test case to prove
> their correctness.

Oops, sorry for the useless comment.

-- 
Dmitry.



More information about the wine-devel mailing list