CComboBox SetwindowText() with CBS_DROPDOWNLIST style
Posted on 2004-09-22
I am trying to use a CComboBox in my application that has a style of CBS_DROPDOWNLIST so the user cannot type his own text in. However, if there is not a selection (like when the application first comes up) I want the edit section to have the decscription of what is in the box. I have tried calling SetWindowText() but it doesn't work. I am assuming because the text I want to set is not found in the combobox droplist. Is there a way to accomplish this with the MFC CComboBox???