ValidateRectangle


bool ValidateRectangle(Handle Window,
                       const Rectangle* Validate=Null)

This function validates a rectangle by removing it from the window's update region.

Parameters

Handle Window

The handle of the window whose update region is being modified.

const Rectangle* Validate

A pointer to a rectangle that is to be validated. This rectangle is expressed in client coordinates. If null is specified or defaulted, the entire client area is validated.

Return

bool

true The rectangle was successfuly validated.
false The call failed.

Notes

The function BeginPaint automatically validates the entire client area.

The system continues to generate paint messages until the current update region is validated.