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2 = (0xffff - 1);
TB_KEY_F3 = (0xffff - 2);
TB_KEY_F4 = (0xffff - 3);
TB_KEY_F5 = (0xffff - 4);
TB_KEY_F6 = (0xffff - 5);
TB_KEY_F7 = (0xffff - 6);
TB_KEY_F8 = (0xffff - 7);
TB_KEY_F9 = (0xffff - 8);
TB_KEY_F10 = (0xffff - 9 );
TB_KEY_F11 = (0xffff - 10);
TB_KEY_F12 = (0xffff - 11);
TB_KEY_INSERT = (0xffff - 12);
TB_KEY_DELETE = (0xffff - 13);
TB_KEY_HOME = (0xffff - 14);
TB_KEY_END = (0xffff - 15);
TB_KEY_PGUP = (0xffff - 16);
TB_KEY_PGDN = (0xffff - 17);
TB_KEY_ARROW_UP = (0xffff - 18);
TB_KEY_ARROW_DOWN = (0xffff - 19);
TB_KEY_ARROW_LEFT = (0xffff - 20);
TB_KEY_ARROW_RIGHT = (0xffff - 21);
TB_KEY_BACK_TAB = (0xffff - 22);
TB_KEY_MOUSE_LEFT = (0xffff - 23);
TB_KEY_MOUSE_RIGHT = (0xffff - 24);
TB_KEY_MOUSE_MIDDLE = (0xffff - 25);
TB_KEY_MOUSE_RELEASE = (0xffff - 26);
TB_KEY_MOUSE_WHEEL_UP = (0xffff - 27);
TB_KEY_MOUSE_WHEEL_DOWN = (0xffff - 28);
TB_DEFAULT = 0x0000;
TB_BLACK = 0x0001;
TB_RED = 0x0002;
TB_GREEN = 0x0003;
TB_YELLOW = 0x0004;
TB_BLUE = 0x0005;
TB_MAGENTA = 0x0006;
TB_CYAN = 0x0007;
TB_WHITE = 0x0008;
TB_BOLD = 0x0100;
TB_UNDERLINE = 0x0200;
TB_REVERSE = 0x0400;
TB_ITALIC = 0x0800;
TB_BLINK = 0x1000;
TB_TRUECOLOR_BOLD = 0x01000000;
TB_TRUECOLOR_UNDERLINE = 0x02000000;
TB_TRUECOLOR_REVERSE = 0x04000000;
TB_TRUECOLOR_ITALIC = 0x08000000;
TB_TRUECOLOR_BLINK = 0x10000000;