1 /*************************************************************** 2 * message.h 3 * Header for Rex addin program. 4 ***************************************************************/ 5 #ifndef _MSG_ 6 #define _MSG_ 7 8 #define MSG_DS_PAINT 0x01 9 #define MSG_DS_CLOSE 0x02 10 #define MSG_DS_COMMAND 0x03 11 #define MSG_DS_SHORTCUT 0x04 12 #define MSG_DS_KEY_DOWN 0x10 13 #define MSG_DS_KEY_UP 0x11 14 #define MSG_DS_CHAR 0x12 15 #define MSG_DS_TOUCH_DOWN 0x20 16 #define MSG_DS_TOUCH_UP 0x21 17 #define MSG_DS_TOUCH_MOVE 0x22 18 #define MSG_DS_SCROLLUP_REPEAT 0x23 19 #define MSG_DS_SCROLLDOWN_REPEAT 0x24 20 #define MSG_DS_PAGEUP_REPEAT 0x25 21 #define MSG_DS_PAGEDOWN_REPEAT 0x26 22 #define MSG_DS_SCROLLUP_UP 0x27 23 #define MSG_DS_SCROLLDOWN_UP 0x28 24 #define MSG_DS_PAGEUP_UP 0x29 25 #define MSG_DS_PAGEDOWN_UP 0x2a 26 #define MSG_DS_SCROLLUP 0x30 27 #define MSG_DS_SCROLLDOWN 0x31 28 #define MSG_DS_RIGHTSCROLL 0x32 29 #define MSG_DS_LEFTSCROLL 0x33 30 #define MSG_DS_PAGEUP 0x34 31 #define MSG_DS_PAGEDOWN 0x35 32 #define MSG_DS_SCROLL_THUMB 0x36 33 #define MSG_DS_SCROLL_THUMB_DOWN 0x37 34 #define MSG_DS_TIMER1 0x40 35 #define MSG_DS_ALARM 0x41 36 #define MSG_DS_POWERON 0x42 37 #define MSG_DS_COMMAND_DOWN 0x43 38 #define MSG_DS_COMMAND_REPEAT 0x44 39 #define MSG_DS_COMMAND_UP 0x45 40 #define MSG_DS_POWEROFF 0x46 41 #define MSG_DS_AUTOPOWEROFF 0x47 42 #define MSG_DS_BATTERY_DETECT 0x48 43 44 #define MSG_BASE 0xB000 45 46 #define ID_COMPONENT_EDIT 0x40 47 #define ID_COMPONENT_SETTING 0x41 48 #define ID_COMPONENT_SEARCH 0x42 49 #define ID_COMPONENT_CLOSE 0x43 50 #define ID_COMPONENT_TODAY 0x44 51 #define ID_COMPONENT_DAY 0x45 52 #define ID_COMPONENT_MONTH 0x46 53 #define ID_COMPONENT_WEEK 0x47 54 #define ID_COMPONENT_CATEGORY 0x48 55 #define ID_COMPONENT_LIST 0x49 56 #define ID_COMPONENT_PASTE 0x4a 57 #define ID_COMPONENT_RETURN 0x4b 58 #define ID_COMPONENT_SAINYU 0x4c 59 #define ID_COMPONENT_SYOUSAI 0x4d 60 #define ID_COMPONENT_END 0x4e 61 #define ID_COMPONENT_EIWA 0x4f 62 #define ID_COMPONENT_WAEI 0x50 63 #define ID_COMPONENT_KOKUGO 0x51 64 #define ID_COMPONENT_COMPLETE 0x52 65 #define ID_COMPONENT_CANCEL 0x53 66 #define ID_COMPONENT_ARROWUP 0x54 67 #define ID_COMPONENT_ARROWDOWN 0x55 68 #define ID_COMPONENT_ARROWRIGHT 0x56 69 #define ID_COMPONENT_ARROWLEFT 0x57 70 #define ID_COMPONENT_ARROWDUP 0x58 71 #define ID_COMPONENT_ARROWDDOWN 0x59 72 #define ID_COMPONENT_CONTINUE 0x5a 73 #define ID_COMPONENT_AM 0x5b 74 #define ID_COMPONENT_PM 0x5c 75 #define ID_COMPONENT_ALARM 0x5d 76 #define ID_COMPONENT_KEY 0x5f 77 #define ID_COMPONENT_GRAY32 0x60 78 #define ID_COMPONENT_GRAY40 0x61 79 #define ID_COMPONENT_GRAY45 0x62 80 #define ID_COMPONENT_EDIT_START 0x63 81 #define ID_COMPONENT_GOTAB 0x64 82 #define ID_COMPONENT_ARROWUP_WIDE 0x65 83 #define ID_COMPONENT_ARROWDOWN_WIDE 0x66 84 #define ID_COMPONENT_CLOSEP 0x67 85 86 #define ID_SCROLLUP 0xF0 87 #define ID_SCROLLDOWN 0xF1 88 #define ID_PAGEUP 0xF2 89 #define ID_PAGEDOWN 0xF3 90 #define ID_SCROLL_THUMB_DOWN 0xF4 91 92 93 #define KEY_TOP_A 0x0001 94 #define KEY_BACK_A 0x0002 95 #define KEY_ENTER_A 0x0004 96 #define KEY_UP_A 0x0008 97 #define KEY_DOWN_A 0x0010 98 99 #define KEY_TOP_B KEY_TOP_A +0x0100 100 #define KEY_BACK_B KEY_BACK_A +0x0100 101 #define KEY_ENTER_B KEY_ENTER_A+0x0100 102 #define KEY_UP_B KEY_UP_A +0x0100 103 #define KEY_DOWN_B KEY_DOWN_A +0x0100 104 105 #define KEY_TOP_C KEY_TOP_A +0x0200 106 #define KEY_BACK_C KEY_BACK_A +0x0200 107 #define KEY_ENTER_C KEY_ENTER_A+0x0200 108 #define KEY_UP_C KEY_UP_A +0x0200 109 #define KEY_DOWN_C KEY_DOWN_A +0x0200 110 111 #define KEY_TOP_D KEY_TOP_A +0x0400 112 #define KEY_BACK_D KEY_BACK_A +0x0400 113 #define KEY_ENTER_D KEY_ENTER_A+0x0400 114 #define KEY_UP_D KEY_UP_A +0x0400 115 #define KEY_DOWN_D KEY_DOWN_A +0x0400 116 117 #define KEY_TOP_E KEY_TOP_A +0x0800 118 #define KEY_BACK_E KEY_BACK_A +0x0800 119 #define KEY_ENTER_E KEY_ENTER_A+0x0800 120 #define KEY_UP_E KEY_UP_A +0x0800 121 #define KEY_DOWN_E KEY_DOWN_A +0x0800 122 123 124 #define TP_MODE_A 0x00 125 #define TP_MODE_B 0x01 126 #define TP_MODE_C 0x02 127 #define TP_MODE_D 0x04 128 #define TP_MODE_E 0x08 129 130 #endif /* _MSG_ */ 131 132 133