8000 flashwindow · codepongo/utocode@8025b9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 8025b9d

Browse files
committed
flashwindow
1 parent 1492e88 commit 8025b9d

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ it is only a storage some demos and documents are in it.
4242
+ independentmfc
4343
independent MFC classes such as string, image, rect, time and so on
4444

45+
+ tFlashWindow.c
46+
a sample for FlashWindow API.
47+
4548

4649
* cublog
4750
a python client script for [chinaunix blog](http://blog.chinaunix.net)

windows/tFlashWindow.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//cl tFlashWindow.c && tFlashWindow.exe
2+
#include <windows.h>
3+
#pragma comment(lib, "User32.lib")
4+
int main(int argc, char* argv[]) {
5+
HWND w = GetConsoleWindow();
6+
while(TRUE) {
7+
FlashWindow(w, TRUE);
8+
Sleep(700);
9+
}
10+
return 0;
11+
}

0 commit comments

Comments
 (0)
0