Commit d39d81eb HZH

取消停靠窗体的关闭动画以解决关闭时的一些卡顿问题

1 个父辈 3bcae145
...@@ -195,25 +195,25 @@ namespace HZH_Controls.Forms ...@@ -195,25 +195,25 @@ namespace HZH_Controls.Forms
private void FrmAnchor_VisibleChanged(object sender, EventArgs e) private void FrmAnchor_VisibleChanged(object sender, EventArgs e)
{ {
timer1.Enabled = this.Visible; timer1.Enabled = this.Visible;
if (Visible) //if (Visible)
{ //{
if (blnDown) // if (blnDown)
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE); // ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE);
else // else
{ // {
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE); // ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE);
} // }
} //}
else //else
{ //{
if (blnDown) // if (blnDown)
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE | ControlHelper.AW_HIDE); // ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_NEGATIVE | ControlHelper.AW_HIDE);
else // else
{ // {
ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE | ControlHelper.AW_HIDE); // ControlHelper.AnimateWindow(this.Handle, 100, ControlHelper.AW_VER_POSITIVE | ControlHelper.AW_HIDE);
} // }
} //}
} }
private void timer1_Tick(object sender, EventArgs e) private void timer1_Tick(object sender, EventArgs e)
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!