//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by MyClass.rc
//
#define IDM_ABOUTBOX                    0x0010
#define IDD_ABOUTBOX                    100
#define IDS_ABOUTBOX                    101
#define IDD_MYCLASS_DIALOG              102
#define IDR_MAINFRAME                   128
#define IDD_DIALOG_LIST                 129
#define IDC_EDIT_SEARCH                 1001
#define IDC_EDIT_AUTHOR                 1001
#define IDC_LIST_TXL                    1002
#define IDC_BUTTON_MoveFirst            1002
#define IDC_BUTTON_MovePrevious         1003
#define IDC_STATIC_SEARCH               1004
#define IDC_BUTTON_MoveNext             1004
#define IDC_STATIC_PHOTO                1005
#define IDC_BUTTON_MoveLast             1006
#define IDC_BUTTON_SHOWLIST             1007
#define IDC_DATETIMEPICKER              1008
#define IDC_COMBO_SEX                   1009
#define IDC_COMBO_SX                    1010
#define IDC_EDIT_OFFCODE                1011
#define IDC_EDIT_DESCRIBE               1011
#define IDC_EDIT_POSITION               1011
#define IDC_EDIT_FAMCODE                1012
#define IDC_BUTTON_NEW                  1012
#define IDC_EDIT_QQ                     1013
#define IDC_EDIT_ICQ                    1014
#define IDC_EDIT_OFFTEL                 1015
#define IDC_EDIT_FAMTEL                 1016
#define IDC_EDIT_MOBTEL                 1017
#define IDC_BUTTON_DELETE               1018
#define IDC_BUTTON_MODIFY               1019
#define IDC_BUTTON_CANCELEDIT           1020
#define IDC_COMBO_STYLE                 1021
#define IDC_BUTTON_COMMITEDIT           1021
#define IDC_LIST_MEMBERS                1024
#define IDC_EDIT_NAME                   1025
#define IDC_CHECK_NAME                  1025
#define IDC_EDIT_NICKNAME               1026
#define IDC_EDIT_KEY                    1026
#define IDC_CHECK_TELNUM                1027
#define IDC_EDIT_EMAIL                  1028
#define IDC_CHECK_NETNUM                1028
#define IDC_EDIT_MEMO                   1029
#define IDC_CHECK_ALL                   1029
#define IDC_CHECK_MEMO                  1030
#define ID_SEARCH                       1031
#define IDC_STA_WU                      1035// Next default values for new objects
// 
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE        130
#define _APS_NEXT_COMMAND_VALUE         32771
#define _APS_NEXT_CONTROL_VALUE         1032
#define _APS_NEXT_SYMED_VALUE           101
#endif
#endif
上面有一些不同ID的东西值是一样的,有问题吗?

解决方案 »

  1.   

    我有时比如添加一个按钮时,IDE会自动给一个ID,可一般我要改成我的,有时这个时候会产生两个ID值相同,我一般是删一个,不知道你们遇到过没有
      

  2.   

    手动更改ID一定要小心ID的重复问题,原则上是不允许有相同的ID出现的,那是程序的隐患,还是规范一些为好
      

  3.   

    谢谢各位,这种情况就是simouse(Simouse)所说的造成的,我也是担心有问题,实际上我的程序目前为止运行正常,可能正如flyelf(空谷清音) 所说的“只要相同的id不在同一个窗口被处理,就没有问题”,希望大家有类似的情况在这说说,大家讨论讨论
      

  4.   

    一般是添加了控件之后系统会自动生成一个控件ID, 如果你修改了这个ID,则会产生一个新的ID名字,但是定义的ID的值还是跟前一个ID的值相同。
    这个时候可以删除前一个ID名字的定义。
      

  5.   

    只好这样了,我觉得这是IDE的缺陷