Roman Pišl rpisl@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?