Control.OnPaintBackground(PaintEventArgs) Control.OnPaintBackground(PaintEventArgs) Control.OnPaintBackground(PaintEventArgs) Control.OnPaintBackground(PaintEventArgs) Method

Definición

Pinta el fondo del control.Paints the background of the control.

protected:
 virtual void OnPaintBackground(System::Windows::Forms::PaintEventArgs ^ pevent);
protected virtual void OnPaintBackground (System.Windows.Forms.PaintEventArgs pevent);
abstract member OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
override this.OnPaintBackground : System.Windows.Forms.PaintEventArgs -> unit
Protected Overridable Sub OnPaintBackground (pevent As PaintEventArgs)

Parámetros

pevent
PaintEventArgs PaintEventArgs PaintEventArgs PaintEventArgs

PaintEventArgs que contiene información sobre el control que se va a pintar.A PaintEventArgs that contains information about the control to paint.

Comentarios

El OnPaintBackground método permite que las clases derivadas controlen en segundo plano de Windows borrar las solicitudes.The OnPaintBackground method enables derived classes to handle Windows background erase requests.

Notas a los desarrolladores de herederos

Las clases herederas deben invalidar este método para controlar la solicitud de borrado en segundo plano de windows.Inheriting classes should override this method to handle the erase background request from windows. Cuando se reemplaza OnPaintBackground(PaintEventArgs) en una clase derivada no es necesario llamar a la clase base OnPaintBackground(PaintEventArgs).When overriding OnPaintBackground(PaintEventArgs) in a derived class it is not necessary to call the base class's OnPaintBackground(PaintEventArgs).

Se aplica a

Consulte también: