MyDefine.h
上传用户:netltd
上传日期:2013-02-12
资源大小:7234k
文件大小:2k
- //当前任务代号
- #define NEW_PROJECT 1
- #define NEW_FILE 2
- #define NEW_NONE -1
- //项目文件后缀
- #define PROJECT_POSTFIX prj
- //图纸文件后缀
- #define DRAWING_POSTFIX drg
- #define RECENTFILELIST_NUM 4 //MRU文件列表项数目
- #define A0_SIZE_INDEX 0
- #define A1_SIZE_INDEX 1
- #define A2_SIZE_INDEX 2
- #define A3_SIZE_INDEX 3
- #define A4_SIZE_INDEX 4
- #define EXTRA_WIDTH 100 // 为方便绘图额外增加的窗口宽度
- #define EXTRA_HIGTH 100 // 为方便绘图额外增加的窗口高度
- #define SELECT_RECT_WIDTH 3
- #define SELECT_RANGE 3 //选择对象时的选中范围
- /*图形对象代号*/
- #define OBJECT_LINE 310
- #define OBJECT_RECT 320
- #define OBJECT_CIRCLE 330
- #define OBJECT_ARC 340
- #define OBJECT_TEXT 350
- /*消息代号*/
- #define MESSAGE_MIN 9000
- #define MESSAGE_LBUTTONDOWN 9010
- #define MESSAGE_RBUTTONDOWN 9020
- #define MESSAGE_MOUSEMOVE 9030
- #define MESSAGE_SCROLL 9040
- #define MESSAGE_MAX 9200
- /*绘图命令代号*/
- #define NO_COMMAND 0 //无任何命令
- #define DRAW_MIN 1000
- #define DRAW_SELECT 1010
- #define DRAW_LINE 1020
- #define DRAW_RECT 1030
- #define DRAW_CIRCLE 1040
- #define DRAW_ARC 1050
- #define DRAW_TEXT 1060
- #define DRAW_MULTILINE 1070
- #define DRAW_POLYGON 1090
- #define DRAW_ELLIPSE 1100
- #define DRAW_DOT 1110
- #define DRAW_DEFINELINE 1120
- #define DRAW_CURVE 1130
- #define DRAW_MAX 1200
- /*修改命令代号*/
- #define MODIFY_MIN 1300
- #define MODIFY_DELETE 1310
- #define MODIFY_MAX 1500