110,535
社区成员
发帖
与我相关
我的任务
分享
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)
{
return;
}
base.WndProc(ref m);
}
private Int32 WM_NCHITTEST = 0x0084;
Boolean _bSwitch = false;
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x0084)
{
if (_bSwitch)
{
return;
}
}
base.WndProc(ref m);
}
private void button1_Click(object sender, EventArgs e)
{
_bSwitch = !_bSwitch;
}