Compartir a través de


CWindow::SetRedraw

Establece o desactiva el marcador actualizar enviando un mensaje de WM_SETREDRAW a la ventana.

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

Parámetros

  • bRedraw
    [in] Especifica el estado del indicador actualizar.Si se establece TRUE (valor predeterminado), la marca actualizar; si desactiva FALSO, el marcador.

Comentarios

Llamada SetRedraw para permitir los cambios se rediseñados o para evitar que los cambios sean rediseñados.

Ejemplo

//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

Requisitos

encabezado: atlwin.h

Vea también

Referencia

Clase de CWindow