Control.OnPaintBackground(PaintEventArgs) 메서드

정의

컨트롤의 배경을 그립니다.

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)

매개 변수

pevent
PaintEventArgs

그리려는 컨트롤에 대한 정보가 포함된 PaintEventArgs입니다.

설명

OnPaintBackground 메서드를 사용하면 파생 클래스가 Windows 백그라운드 지우기 요청을 처리할 수 있습니다.

상속자 참고

상속 클래스는 창에서 초기화 백그라운드 요청을 처리 하려면이 메서드를 재정의 해야 합니다. 파생 클래스에서 재정의하는 OnPaintBackground(PaintEventArgs) 경우 기본 클래스를 OnPaintBackground(PaintEventArgs)호출할 필요가 없습니다.

적용 대상

추가 정보