protected virtual void AddHandlers()
{
// Add Windows Messages handlers
this.hostingControl.PaintBackground += new VideoControl.PaintBackgroundEventHandler(OnPaintBackground);
this.hostingControl.Paint += new PaintEventHandler(OnPaintHandler); // for WM_PAINT
this.hostingControl.Resize += new EventHandler(OnResizeMoveHandler); // for WM_SIZE
//this.hostingControl.Move += new EventHandler(OnResizeMoveHandler); // for WM_MOVE
SystemEvents.DisplaySettingsChanged += new EventHandler(OnDisplayChangedHandler); // for WM_DISPLAYCHANGE
}