|
-
January 4th, 2010, 06:11 AM
#1
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...
-
January 4th, 2010, 06:23 AM
#2
Re: Update MultiLine EditControl
 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.
Victor Nijegorodov
-
January 4th, 2010, 06:43 AM
#3
Re: Update MultiLine EditControl
-
January 6th, 2010, 01:33 AM
#4
Re: Update MultiLine EditControl
Thank u.... n it has worked...
Tags for this Thread
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
|