mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 12:50:53 +00:00
user32: Fix a message test that would only pass on wine.
This commit is contained in:
parent
331bac4d00
commit
c6e61fbf89
@ -8936,7 +8936,7 @@ static const struct message WmSetWindowRgn_no_redraw[] = {
|
||||
};
|
||||
|
||||
static const struct message WmSetWindowRgn_clear[] = {
|
||||
{ WM_WINDOWPOSCHANGING, sent|wparam, SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE }, /* some versions of 2000/XP also has SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE in wparam */
|
||||
{ WM_WINDOWPOSCHANGING, sent|wparam, SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOSIZE|SWP_NOMOVE|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE },
|
||||
{ WM_NCCALCSIZE, sent|wparam, 1 },
|
||||
{ WM_NCPAINT, sent }, /* wparam != 1 */
|
||||
{ WM_GETTEXT, sent|defwinproc|optional },
|
||||
|
@ -273,8 +273,7 @@ int WINAPI SetWindowRgn( HWND hwnd, HRGN hrgn, BOOL bRedraw )
|
||||
|
||||
if (ret)
|
||||
{
|
||||
UINT swp_flags = SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED;
|
||||
if (hrgn) swp_flags |= SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE;
|
||||
UINT swp_flags = SWP_NOSIZE|SWP_NOMOVE|SWP_NOZORDER|SWP_NOACTIVATE|SWP_FRAMECHANGED|SWP_NOCLIENTSIZE|SWP_NOCLIENTMOVE;
|
||||
if (!bRedraw) swp_flags |= SWP_NOREDRAW;
|
||||
SetWindowPos( hwnd, 0, 0, 0, 0, 0, swp_flags );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user