CWindow::Invalidate

无效的整个工作区。

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

备注

在参见 Windows SDK的 InvalidateRect

RECT 参数传递 NULLInvalidateRect Win32函数。

示例

//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();

要求

Header: atlwin.h

请参见

参考

CWindow选件类

CWindow::InvalidateRect

CWindow::InvalidateRgn

CWindow::ValidateRect

CWindow::ValidateRgn