【CAPL语言】UDS DTC老化测试复位脚本
2026/7/9 18:11:07
protected override void WndProc(ref Message m) { switch (m.Msg) { case 0x0201://鼠标左键按下的消息 m.Msg = 0x00A1;//更改消息为非客户区按下鼠标 m.LParam = IntPtr.Zero;//默认值 m.WParam = new IntPtr(2);//鼠标放在标题栏内 break; } base.WndProc(ref m); }直接放在form类中就行。
以上资料来源于网络,感谢各位大佬。