WndProc(ref Message m)
摘要:
WndProc(ref Message m)protected override void WndProc(ref 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; } ... 阅读全文
posted @ 2012-11-30 14:27 SuperCai 阅读(771) 评论(0) 推荐(0) 编辑