|
-
April 22nd, 1999, 06:00 AM
#1
How to add integer items in ComboBox
I want to add integers in combobox list but couldn't do ?
Will anyone help me out ?
Rakesh
RHardaha
-
April 22nd, 1999, 06:18 AM
#2
Re: How to add integer items in ComboBox
Try formating the integers into a CString with ::Format:
CString t_cTemp;
t_cTemp.Format("%d",myint);
m_MyCombo.AddString(t_cTemp);
Steven M. McNeese
[email protected]
-
April 22nd, 1999, 06:32 AM
#3
Re: How to add integer items in ComboBox
The first response of steeve is good if you want to add an integer as string in a combobox.
But if you want to link an integer to each item of your combobox use GetItemData and SetItemData methods of the CComboBox class.
I hope this could help.
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
|