文章标题 原创 翻译 转载 文章内容 ``` void startAlert(HWND hwnd, int durationMs, int timeoutMs) { FLASHWINFO info; info.cbSize = sizeof(info); info.hwnd = hwnd; info.dwFlags = FLASHW_TRAY; info.dwTimeout = timeoutMs; info.uCount = durationMs == 0 ? 10 : durationMs / timeoutMs; FlashWindowEx(&info); } void stopAlert(HWND hwnd) { FLASHWINFO info; info.cbSize = sizeof(info); info.hwnd = hwnd; info.dwFlags = FLASHW_STOP; info.dwTimeout = 0; info.uCount = 0; FlashWindowEx(&info); } ``` 文章类别 Python Mobile Android Java Shell Life Database Bug Windows IOS Tools Boost Node.js Mac Product Tips C/C++ Golang Javascript React Qt MQ MongoDB Design Web Linux LLM ChatGPT RAG AI 提交