winform窗体最小化-LMLPHPconst int WM_SYSCOMMAND = 0x112;
winform窗体最小化-LMLPHPconst int SC_CLOSE = 0xF060;
winform窗体最小化-LMLPHPconst int SC_MINIMIZE = 0xF020;
winform窗体最小化-LMLPHPconst int SC_MAXIMIZE = 0xF030;
winform窗体最小化-LMLPHPprotected override void WndProc(ref Message m)
winform窗体最小化-LMLPHP{
winform窗体最小化-LMLPHP    if (m.Msg == WM_SYSCOMMAND)
winform窗体最小化-LMLPHP    {
winform窗体最小化-LMLPHP        if (m.WParam.ToInt32() == SC_MINIMIZE)
winform窗体最小化-LMLPHP        {
winform窗体最小化-LMLPHP            this.Visible = false;
winform窗体最小化-LMLPHP            return;
winform窗体最小化-LMLPHP        }
winform窗体最小化-LMLPHP    }
winform窗体最小化-LMLPHP    base.WndProc(ref m);
winform窗体最小化-LMLPHP}

03-31 13:45
查看更多