Control.OnPaintBackground(PaintEventArgs) Metoda

Definicja

Maluje tło kontrolki.

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)

Parametry

pevent
PaintEventArgs

Element PaintEventArgs zawierający informacje o kontrolce do malowania.

Uwagi

Metoda OnPaintBackground umożliwia klasom pochodnym obsługę żądań wymazywania w tle systemu Windows.

Uwagi dotyczące dziedziczenia

Dziedziczenie klas powinno zastąpić tę metodę, aby obsłużyć żądanie wymazania tła z okien. Podczas zastępowania klasy pochodnej nie jest konieczne wywołanie OnPaintBackground(PaintEventArgs) klasy OnPaintBackground(PaintEventArgs)bazowej .

Dotyczy

Zobacz też