修改MFC的编辑框(Edit box)命令ID后,无法运行
时间:2011-12-15
来源:互联网
对话框中拉出来多个,编辑框编辑框(Edit box),在resource.h文件中查看这些编辑框(Edit box)的命令ID,并不是连续的,为了让这些编辑框(Edit box)的命令ID连续,我把其中几个的命令ID作了修改,跟其他的命令ID没有重复(冲突)。接下来运行的时候就报错了。请问这是什么原因呢?难道不能修改吗?
修改成如下的了:
#define IDC_EDIT1 1026
#define IDC_EDIT2 1027
#define IDC_EDIT3 1028
#define IDC_EDIT4 1029
#define IDC_EDIT5 1030
#define IDC_EDIT6 1031
#define IDC_EDIT7 1032
#define IDC_EDIT8 1033
#define IDC_EDIT9 1034
#define IDC_EDIT10 1035
#define IDC_EDIT11 1036
#define IDC_EDIT12 1037
#define IDC_EDIT13 1038
#define IDC_EDIT14 1039
#define IDC_EDIT15 1040
#define IDC_EDIT16 1041
修改成如下的了:
#define IDC_EDIT1 1026
#define IDC_EDIT2 1027
#define IDC_EDIT3 1028
#define IDC_EDIT4 1029
#define IDC_EDIT5 1030
#define IDC_EDIT6 1031
#define IDC_EDIT7 1032
#define IDC_EDIT8 1033
#define IDC_EDIT9 1034
#define IDC_EDIT10 1035
#define IDC_EDIT11 1036
#define IDC_EDIT12 1037
#define IDC_EDIT13 1038
#define IDC_EDIT14 1039
#define IDC_EDIT15 1040
#define IDC_EDIT16 1041
作者: liyyyjjj1987 发布时间: 2011-12-15
这样很易搞乱,一般不要修改。
我就算修改这个,都要将程序源文件备份才好,免得出错。
我就算修改这个,都要将程序源文件备份才好,免得出错。
作者: keith_cheung 发布时间: 2011-12-15
可以修改,但ID值不要与已有的值重复,还有就是在编辑框所在的类中加入:#include <resource.h>
作者: liuli7786 发布时间: 2011-12-15
因为其他地方用到了,不好意思,忘记那些写文件用到,根据错误可以找到的,最痛苦和最幸福的事情都在bug上
作者: cynixway 发布时间: 2011-12-15
报什么错误啊?
作者: wuwen1030 发布时间: 2011-12-15
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28