|
-
April 22nd, 1999, 12:16 AM
#1
CComboBox, SetCurSel... VC++ 5.0...bug??
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|