protected override void WndProc(ref Message m)
{
if (m.Msg == (int)Msgs.WM_LBUTTONDBLCLK)
{
if (DockHelper.IsDockStateAutoHide(this.DockPane.DockState))
{
this.DockPane.DockPanel.ActiveAutoHideContent = null;
return;
}
if (this.DockPane.IsFloat)
this.DockPane.RestoreToPanel();
else
this.DockPane.Float();
}
base.WndProc(ref m);
}