/// <summary>
        /// 控制窗体高度
        /// </summary>
        private void ControlFormSize()
        {
            if (this.Controls.Count > 0)
            {
                int controlHeight = this.Controls.Count * this.Controls[0].Height + 35;

                this.Height = controlHeight;

                if (this.Height > 265)
                {
                    this.Height = 265;
                }

                this.Text = string.Format("您有待处理事件:{0}条", this.Controls.Count);
            }
            else
            {
                this.Height = 26;
                this.Text   = "没有要处理的事件";
            }

            m_activedForm = StapleInfo.GetActiveWindow();

            SetFormLocation();

            if (!Silent && !m_firstShow && !this.Visible && this.Controls.Count > 0)
            {
                m_firstShow  = true;
                this.Visible = true;
                ControlScrollPosition(0);
            }
        }
        /// <summary>
        /// 重新窗体消息处理函数
        /// </summary>
        /// <param name="m">窗体消息</param>
        protected override void DefWndProc(ref Message m)
        {
            switch (m.Msg)
            {
            case WM_SHOWWINDOW:

                if (!m_check)
                {
                    m_activedForm = StapleInfo.GetActiveWindow();
                    this.Location = new Point(-800, -800);
                    RefreshData();
                    this.Activate();
                    return;
                }

                base.DefWndProc(ref m);
                break;

            case WM_NCLBUTTONDOWN:
                //m_activedFormFlag = true;
                base.DefWndProc(ref m);
                break;

            case WndMsgSender.CloseMsg:
                ExitApp = true;
                this.Close();
                break;

            case WndMsgSender.FinishedMsg:
                DisposeMessage(m);
                break;

            default:
                base.DefWndProc(ref m);
                break;
            }
        }