CWindow::RedrawWindow

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

See RedrawWindow in the Win32 SDK.

Remarks

Updates a specified rectangle or region in the client area.

Example

//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(hWndFoo);
BOOL bRedrawn = myWindow.RedrawWindow();

CWindow OverviewClass Members

See Also   CWindow::UpdateWindow, RECT