|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Validates the client area within the given rectangle by removing the rectangle from the update region of the window.
The BeginPaint member function automatically validates the entire client area. Neither the ValidateRect nor the ValidateRgn member function should be called if a portion of the update region needs to be validated before WM_PAINT is next generated.
Windows continues to generate WM_PAINT messages until the current update region is validated.