Re: modify text in CComboBox

Tech-Archive recommends: Speed Up your PC by fixing your registry




"William Dauchy" <wdauchy@xxxxxxxxx> ha scritto nel messaggio
news:2ce5b9bb-012e-48a5-a188-4d22b6175236@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I have a CComboBox. I wanted to modify the text of one entry.
So I made:

myCComboxBox.SetDlgItemText(mySel, "Some new text");

But nothing changed.

You may try to call CComboBox :: DeleteString to remove the old string, and
InsertString to add the new one...

BTW: CodeProject has a tutorial on Combo-boxes:

http://www.codeproject.com/KB/combobox/combobox_tut.aspx

Giovanni


.



Relevant Pages