Hi,

Here's the problem. I populate a combobox in a dlg with 16 strings. The combobox is not set to sort.

The strings added in position 2 and 9 are the same. In the dlgbox OnInitDlg handler (after I fill the combo), I call m_ctrlCombo.SetCurSel(9). This function returns "9". If I call m_ctrlCombo.GetCount() I get 16. Why, then, when the dlg is displayed, is the 2nd item selected?

Is there a bug?

I'm using VC++ 5.0 (no SP's)

Thanks for any help,

Harvey Hawes

Software Engineer
BioScience Analysis Software Ltd.

Masters Candidate
Cardiovascular/Respiratory Sciences
Faculty of Medicine
University of Calgary
Calgary, Alberta, Canada