Reference

PAINT_RedrawWindow(3w)

PAINT_RedrawWindow

NAME

PAINT_RedrawWindow - PAINT_RedrawWindow

SYNOPSIS

BOOL32 PAINT_RedrawWindow
(

HWND32 hwnd,

const RECT32 *rectUpdate,

HRGN32 hrgnUpdate,

UINT32 flags,

UINT32 control
);

DESCRIPTION

PAINT_RedrawWindow.

FIXME

Windows uses WM_SYNCPAINT to cut down the number of intertask SendMessage() calls. This is a comment inside DefWindowProc() source from 16-bit SDK:

This message avoids lots of inter-app message traffic by switching to the other task and continuing the recursion there.

WParam = flags LOWORD(lParam) = hrgnClip HIWORD(lParam) = hwndSkip (not used; always NULL)

All in all, a prime candidate for a rewrite.

SEE ALSO

WIN_UpdateNCArea(3w), BeginPaint16(3w), BeginPaint32(3w), EndPaint16(3w), EndPaint32(3w), FillWindow(3w), PaintRect(3w), GetControlBrush(3w), RedrawWindow32(3w), RedrawWindow16(3w), UpdateWindow16(3w), UpdateWindow32(3w), InvalidateRgn16(3w), InvalidateRgn32(3w), InvalidateRect16(3w), InvalidateRect32(3w), ValidateRgn16(3w), ValidateRgn32(3w), ValidateRect16(3w), ValidateRect32(3w), GetUpdateRect16(3w), GetUpdateRect32(3w), GetUpdateRgn16(3w), GetUpdateRgn32(3w), ExcludeUpdateRgn16(3w), ExcludeUpdateRgn32(3w)