Sending text to an edit box
-
Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)
-
Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)
SetDlgItemText (IDC_MY_EDIT, replyprefix + m_Reply);
/ravi "There is always one more bug..." http://www.ravib.com ravib@ravib.com
-
Hi all, I have modified a program I am writing to use an edit box instead of a list box for displaying text. I was using insertstring to send text to the top line of the listbox: m_theconv.InsertString(0, replyprefix + m_Reply); What would be the best way to acheive this in an edit box???? (Yes - I am a newbie to VC++) Any help greatly appreciated. Thanks Tryhard :-)
Assuming it's still called m_theconv, you can m_theconv.SetWindowText(replyprefix + m_Reply); Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
-
Assuming it's still called m_theconv, you can m_theconv.SetWindowText(replyprefix + m_Reply); Christian I have come to clean zee pooollll. - Michael Martin Dec 30, 2001
Sonork ID 100.10002:MeanManOz
I live in Bob's HungOut now
maybe he might want to so this :- replyprefix + "\r\n" + m_Reply Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut