共用方式為


CWindow::RedrawWindow

BOOL RedrawWindow(
   LPCRECT lpRectUpdate = NULL,
   HRGN hRgnUpdate = NULL,
   UINT flags = RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE 
); throw() 

備註

請參閱在 Windows SDK的 RedrawWindow

範例

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::RedrawWindow() to update the entire window using the 
//default arguments

CWindow myWindow;
myWindow.Attach(hWnd);
BOOL bRedrawn = myWindow.RedrawWindow();

需求

Header: atlwin.h

請參閱

參考

CWindow 類別

CWindow::UpdateWindow

RECT