00001 #if !defined(DLG_DEFINES) 00002 #define DLG_DEFINES 00003 00004 #define CTRL(x) ((x) & 0x1f) 00005 #define SHIFT(x) ((x) & 0x2f) 00006 #define ALT(x) ((x) & 0x4f) 00007 #define KEY_ESC 27 00008 #define KEY_TAB 9 00009 #define KEY_SHIFT_TAB 9+2 00010 #undef KEY_ENTER 00011 #define KEY_ENTER 10 00012 00013 const int IDOK = 1; 00014 const int IDCANCEL = 2; 00015 const int IDYES = 3; 00016 const int IDNO = 4; 00017 const int IDAPPLY = 5; 00018 const int IDCLOSE = 6; 00019 const int EXIT_APP = 777; 00020 00021 const int MAX_CMD_ID = 1000; 00022 00023 extern string lblOk; 00024 extern string lblCancel; 00025 extern string lblYes; 00026 extern string lblNo; 00027 extern string lblApply; 00028 extern string titDataChgd; 00029 extern string msgAskToSave; 00030 00031 00032 const int LI_SEL_CHANGE = 1001; 00033 const int LI_POS_CHANGE = 1002; 00034 const int BN_PUSHED = 1003; 00035 const int TXT_CHANGED = 1004; 00036 const int CURR_CHANGED = 1005; 00037 const int WIN_MOVED = 1006; 00038 const int PAGE_MODIFIED = 1007; 00039 const int PAGE_SELECTED = 1008; 00040 const int FOCUS_TO_BUTTONS = 1009; 00041 const int CANCEL_TO_CLOSE= 1010; 00042 const int RETURN_TO_PAGE = 1011; 00043 00044 const int MAX_MSG_ID = 5000; 00045 #endif