Add custom defined ID to the ComboBox
-
How to bind the custom defined ID together with the String when adding the String into the Combobox. Why do this? Cause I want to get the custom defined ID associated with the String but not the String. For example,
ID
TEXT
13
goods from 13th shop
11
goods from 11th shop
...
...
The TEXT content is only for display, when selecting, the ID is wanted.(Because by using the ID, I can get more detailed infomation such as a list of goods.) But with MFC it is seems I can not associate the customed ID with the TEXT ,what is added into combobox when calling AddString method. Is the Combobox has any way to satisfy the requirement. If it has not, I have to build a map between customed IDs and the Combobox self-created IDs. //////////////////////////////
-
How to bind the custom defined ID together with the String when adding the String into the Combobox. Why do this? Cause I want to get the custom defined ID associated with the String but not the String. For example,
ID
TEXT
13
goods from 13th shop
11
goods from 11th shop
...
...
The TEXT content is only for display, when selecting, the ID is wanted.(Because by using the ID, I can get more detailed infomation such as a list of goods.) But with MFC it is seems I can not associate the customed ID with the TEXT ,what is added into combobox when calling AddString method. Is the Combobox has any way to satisfy the requirement. If it has not, I have to build a map between customed IDs and the Combobox self-created IDs. //////////////////////////////
-