ElementHost::OnPaintBackground Method (PaintEventArgs^)
.NET Framework (current version)
Paints the background of the control.
Assembly: WindowsFormsIntegration (in WindowsFormsIntegration.dll)
protected: [BrowsableAttribute(false)] virtual void OnPaintBackground( PaintEventArgs^ pevent ) override
Parameters
- pevent
-
Type:
System.Windows.Forms::PaintEventArgs^
A PaintEventArgs that contains information about the control to paint.
The OnPaintBackground method paints the parent control's background into an offscreen HBITMAP. This bitmap is used as the background in the hosted element to support transparency.
This method supports the Microsoft .NET infrastructure and is not intended to be used directly from your code.
.NET Framework
Available since 3.0
Available since 3.0
Show: