[Bug 23940] SetWindowPos does not work for other wine processes

wine-bugs at winehq.org wine-bugs at winehq.org
Sun Aug 8 23:42:34 CDT 2010


http://bugs.winehq.org/show_bug.cgi?id=23940





--- Comment #6 from Dmitry Timoshkov <dmitry at codeweavers.com>  2010-08-08 23:42:33 ---
(In reply to comment #4)
> 0024:Call
> user32.SetWindowPos(00010052,00000000,00000000,00000000,000001f4,000001f4,00000016)
> ret=1d1aaf5b
> trace:win:SetWindowPos hwnd 0x10052, after (nil), 0,0 (500x500), flags 00000016
> trace:win:dump_winpos_flags flags: SWP_NOMOVE SWP_NOZORDER SWP_NOACTIVATE
> 0024:Ret  user32.SetWindowPos() retval=00000000 ret=1d1aaf5b
> 
> But a quick look at dlls/user32/winpos.c makes me think that it's
> not currently supposed to work:
> 
> BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
>                      const RECT *window_rect, const RECT *client_rect, const
> RECT *valid_rects )
> {
> ...
>     if (win == WND_DESKTOP || win == WND_OTHER_PROCESS) return FALSE;

SetWindowPos() does:
if (WIN_IsCurrentThread( hwnd ))
    return USER_SetWindowPos(&winpos);

return SendMessageW( winpos.hwnd, WM_WINE_SETWINDOWPOS, 0, (LPARAM)&winpos );

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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