oga's tools
修訂 | 2b954222ea3ef09d774377078a1059a3ccd5b238 (tree) |
---|---|
時間 | 2014-02-09 14:17:50 |
作者 | oga <hyperoga@gmai...> |
Commiter | oga |
add attributes sample
@@ -1,7 +1,28 @@ | ||
1 | 1 | #include <windows.h> |
2 | 2 | #include <stdio.h> |
3 | 3 | |
4 | -int main() | |
4 | +#if 0 | |
5 | +#define FOREGROUND_BLUE 0x0001 // text color contains blue. | |
6 | +#define FOREGROUND_GREEN 0x0002 // text color contains green. | |
7 | +#define FOREGROUND_RED 0x0004 // text color contains red. | |
8 | +#define FOREGROUND_INTENSITY 0x0008 // text color is intensified. | |
9 | +#define BACKGROUND_BLUE 0x0010 // background color contains blue. | |
10 | +#define BACKGROUND_GREEN 0x0020 // background color contains green. | |
11 | +#define BACKGROUND_RED 0x0040 // background color contains red. | |
12 | +#define BACKGROUND_INTENSITY 0x0080 // background color is intensified. | |
13 | +#define COMMON_LVB_LEADING_BYTE 0x0100 // Leading Byte of DBCS | |
14 | +#define COMMON_LVB_TRAILING_BYTE 0x0200 // Trailing Byte of DBCS | |
15 | +#define COMMON_LVB_GRID_HORIZONTAL 0x0400 // DBCS: Grid attribute: top horizontal. | |
16 | +#define COMMON_LVB_GRID_LVERTICAL 0x0800 // DBCS: Grid attribute: left vertical. | |
17 | +#define COMMON_LVB_GRID_RVERTICAL 0x1000 // DBCS: Grid attribute: right vertical. | |
18 | +#define COMMON_LVB_REVERSE_VIDEO 0x4000 // DBCS: Reverse fore/back ground attribute. | |
19 | +#define COMMON_LVB_UNDERSCORE 0x8000 // DBCS: Underscore. | |
20 | + | |
21 | +#define COMMON_LVB_SBCSDBCS 0x0300 // SBCS or DBCS flag. | |
22 | +#endif | |
23 | + | |
24 | + | |
25 | +int main(int a, char *b[]) | |
5 | 26 | { |
6 | 27 | SetConsoleTextAttribute( |
7 | 28 | GetStdHandle(STD_OUTPUT_HANDLE), |