Update MultiLine EditControl
I am using a multi line edit control. Here the event will be hadle using a timer and it is updated in every seconds. In each time,the same variable will be updating. So I want to display the variable in edit control and it should update in each time by down to down( not overwriting)
I have used
Code:
//.....bla...bla
CString dispVar;
m_list.SetWindowText[dispVar];
.
Here it is overwriting....
How can It Update?? Plz help...
Re: Update MultiLine EditControl
Quote:
Originally Posted by
arunkr6
I have used
Code:
//.....bla...bla
CString dispVar;
m_list.SetWindowText[dispVar];
.
Here it is overwriting....
How can It Update?? Plz help...
1. you code is wrong. You must use (...), not [...]
2. To append text to edit control you can either
- read the old text in a CString, add the new text and then write the updated text back to control
or - use CEdit::SetSel/CEdit::ReplaceSel functions.
Re: Update MultiLine EditControl
Re: Update MultiLine EditControl
Thank u.... n it has worked...