共用方式為


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