c# 關閉 窗口最小化

protected override void WndProc(ref System.Windows.Forms.Message m)         {             const int wm_syscommand = 0x0112;             const int sc_close = 0xF060;             if (m.Msg == wm_syscommand && (int)m.WParam == sc_close)             {                 this.WindowState = FormWindowState.Minimized;                 return;             }             base.WndProc(ref m);         }
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章