[PATCH 1/2] user32/tests: Add test for RedrawWindow with RDW_VALIDATE flag.

Dmitry Timoshkov dmitry at baikal.ru
Wed Apr 22 07:31:15 CDT 2020


Roman Pišl <rpisl at seznam.cz> wrote:

> +    /* RedrawWindow with RDW_VALIDATE triggers WM_PAINT with non-empty update region */
> +    flush_sequence();
> +    InvalidateRect( hwnd, NULL, FALSE );
> +    GetClientRect( hwnd, &rect );
> +    SetRectRgn(hrgn, rect.left, rect.top, rect.right, rect.bottom );
> +    check_update_rgn( hwnd, hrgn );
> +    RedrawWindow( hwnd, &rect, NULL, RDW_INTERNALPAINT|RDW_NOERASE|RDW_NOFRAME|RDW_UPDATENOW|RDW_VALIDATE );
> +    check_update_rgn( hwnd, 0 );
> +    ok_sequence( WmPaintUpdate, "PaintUpdate", FALSE );

Probably RedrawWindow() should ignore RDW_VALIDATE if RDW_UPDATENOW is
also set, did you try that?

-- 
Dmitry.



More information about the wine-devel mailing list