Share via


CWindow::Invalidate

Invalidates the entire client area.

BOOL Invalidate(
   BOOL bErase = TRUE 
) throw();

Remarks

See InvalidateRect in the Windows SDK.

Passes NULL for the RECT parameter to the InvalidateRect Win32 function.

Example

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::Invalidate() to invalidate the entire client area

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.Invalidate();

Requirements

Header: atlwin.h

See Also

Reference

CWindow Class

CWindow::InvalidateRect

CWindow::InvalidateRgn

CWindow::ValidateRect

CWindow::ValidateRgn

Other Resources

CWindow Members