public override void WindowMovedOrResized()
{
if ( _hWindow != IntPtr.Zero )
{
SWF.Control ctrl = SWF.Form.FromHandle( _hWindow );
this.top = ctrl.Top;
this.left = ctrl.Left;
this.Width = ctrl.ClientRectangle.Width;
this.Height = ctrl.ClientRectangle.Height;
}
// Update dimensions incase changed
foreach ( Viewport entry in this.viewportList.Values )
{
entry.UpdateDimensions();
}
}