Firstly, you should have really put this in the "Windows Programming" section.

Have you written code that caters for the ON_CBN_SELCHANGE event? If not, then write that to start with. When you are in the code that handles that event, then you will be able to obtain the index for the item selected via: