- [System.Runtime.InteropServices.DllImport("user32.dll")]
- private extern static IntPtr SetActiveWindow(IntPtr handle);
- private const int WM_ACTIVATE = 0x006;
- private const int WM_ACTIVATEAPP = 0x01C;
- private const int WM_NCACTIVATE = 0x086;
- private const int WA_INACTIVE = 0;
使用C#实现Windows下无焦点窗体
最新推荐文章于 2022-09-05 13:46:20 发布