CWindow::SetRedraw

Imposta o rimuovere il contrassegno di ridisegno inviando un messaggio WM_SETREDRAW la finestra.

void SetRedraw(
   BOOL bRedraw = TRUE 
) throw();

Parametri

  • bRedraw
    [in] specifica lo stato del flag di ridisegno.Se TRUE (valore predefinito), il segno di ridisegno è impostato, se FALSE, il flag viene cancellato.

Note

Chiamata SetRedraw per consentire le modifiche da ridisegnare o per impedire le modifiche da ridisegnare.

Esempio

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::SetRedraw() to set and reset the redraw flag

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.SetRedraw();      //sets the redraw flag to TRUE
//
//
myWindow.SetRedraw(FALSE); //sets the redraw flag to FALSE

Requisiti

Header: atlwin.h

Vedere anche

Riferimenti

Classe di CWindow