让失去焦点的窗口在工具栏闪烁
原文:http://topic.csdn.net/u/20090307/23/93cb2eec-a131-4ffc-b9a5-d022edb2e416.html
让失去焦点的窗口在工具栏闪烁
[System.Runtime.InteropServices.DllImport("user32.dll") ]
static extern int FlashWindow (int hwnd, int bInvert);
private void button1_Click(object sender, System.EventArgs e)
{
FlashWindow(this.Handle.ToInt32(),1); // 参数为1时启动闪烁, 参数为0时停止闪烁
}
浙公网安备 33010602011771号