Window::InvalidateRect

Description

Invalidates the client area within the given rectangle by adding that rectangle to the Window update region.

Syntax

void        InvalidateRect(const RECT* lpRect, BOOL bErase = TRUE)

Parameters

lpRect
Points to a RECT structure that contains the rectangle (in client coordinates) to be added to the update region. If lpRect is NULL, the entire client area is added to the region.
bErase
Specifies whether the background within the update region is to be erased.

Examples

See the example for SetRedraw.

Remark

See Also

Header to Include

origin.h