让失去焦点的窗口在工具栏闪烁

原文: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时停止闪烁
}

posted on 2009-03-08 13:03  冷月孤峰  阅读(385)  评论(0)    收藏  举报