|
-
April 12th, 1999, 08:40 AM
#1
How to obtain edited string from CComboBox
I've created the combobox with the style CBS_DROPDOWN. I want to achieve the functionality, where the user can type new string in the edit control of the combobox and when he presses the Enter key, the new string will be added to the combobox list. The problem is, that I don't know how to obtain the typed string. GetWindowText() doesn't work on combobox, neither the GetLBText() function, since the GetCurSel() returns -1 (the string is not in the combobox yet, so I don't have current selection yet...).
Thank you,
soso.
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
|