/// <summary> /// 鼠标进入 /// </summary> /// <param name="e"></param> protected override void OnMouseEnter(EventArgs e) { m_MouseState = LabelButtonMouseState.MouseEnter; DrawBorderLine(this.CreateGraphics()); this.BackColor = m_MouseEnterColor; base.OnMouseEnter(e); this.Refresh(); }
/// <summary> /// 鼠标按下 /// </summary> /// <param name="e"></param> protected override void OnMouseDown(MouseEventArgs e) { m_MouseState = LabelButtonMouseState.MouseDown; this.BackColor = m_MouseDownColor; base.OnMouseDown(e); }
/// <summary> /// 鼠标离开 /// </summary> /// <param name="e"></param> protected override void OnMouseLeave(EventArgs e) { m_MouseState = LabelButtonMouseState.MouseLeaver; base.OnMouseLeave(e); }