- // 声明
- #if defined (__cplusplus)
- extern "C"{
- #endif
- WINUSERAPI BOOL WINAPI FlashWindowEx(PFLASHWINFO pfwi);
- #if defined (__cplusplus)
- };
- #endif
- // 调用
- FLASHWINFO fwi;
- fwi.cbSize = sizeof(FLASHWINFO);
- fwi.dwFlags = 3; // 1 闪烁标题栏2 闪烁任务栏3 Both
- fwi.dwTimeout = 100;
- fwi.hwnd = hwnd;
- fwi.uCount = 10;
- FlashWindowEx(&fwi);
- //该片段来自于http://www.codesnippet.cn/detail/2210201410771.html
来源: http://www.codesnippet.cn/detail/2210201410771.html