调用winapi中的flashwindow.txt

来自「c#的知识类库」· 文本 代码 · 共 11 行

TXT
11
字号
1.引用
using System.Runtime.InteropServices;
2.在类在申明
[DllImport("user32.dll")]
		public static extern bool FlashWindow(
			IntPtr hWnd,     // handle to window
			bool bInvert   // flash status
			);
3.使用
IntPtr handle=this.Handle;
FlashWindow(handle,true);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?