Resource ID 중복 제거 방법?
프로그램을 작성하다 Resource.h 파일을 확인해보니까
#define IDC_COMBO_DATA_BIT 1051
#define IDC_COMBO_LEVEL_DAY_NIGHT 1051
#define IDC_COMBO_GO_D_Z_SPEED 1051
#define IDC_BUTTON_PM_ADJUST_X8 1051
#define IDC_RADIO_STABLE_ON 1051
#define IDC_BUTTON_DIR_ZF_AF 1051
#define IDC_RADIO_PM_GRID_ON 1051
#define IDC_COMBO_PARITY 1052
#define IDC_COMBO_DWELL_TIME 1052
#define IDC_COMBO_EEPROM_DATA_LENGTH 1052
#define IDC_RADIO_STABLE_OFF 1052
#define IDC_EDIT_USER_DIR_ZF_AF 1052
#define IDC_EDIT_CMD_DISPLAY 1053
#define IDC_RADIO_PM_MASK_OFF 1053
#define IDC_RADIO_ZOOM_MAG_ON 1053
#define IDC_EDIT_DIR_PM_COLOR 1053
#define IDC_BUTTON_USER_DIR_ZF_AF 1053
이런식으로 겹치는 ID가 많더라구요...?
아직까지는 구동상 별 문제가 없는데 거슬리네요 ...
수동으로 말고 중복된 ID 다시 정리하는 툴이나 방법은 없을까요????
IDC_ 관련 매크로가
IDC_ 관련 매크로가 모두 한 줄로 되어 있고, 정의가 바로 숫자로 되어 있다고 가정하면:
$ grep '#define[ \t]*IDC_' resource.h | sort -k 3
--
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://www.cinsk.org/cfaqs/
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
Korean Ver: http://cinsk.github.io/cfaqs/
댓글 달기