|
-
October 21st, 2001, 09:36 AM
#1
Insert texts into a multi-row CEdit
Anyone has a snippet on inserting lines of texts into a multi-row CEdit?
The CEdit only provides API for extracting, but seems to forget about inserting.
-
October 21st, 2001, 09:46 AM
#2
Re: Insert texts into a multi-row CEdit
use SetSel() followed by ReplaceSel()
/* "Give me a decent hash-function to stand on, and I will move the earth." -Archimedes */
[email protected]
-
October 21st, 2001, 09:46 AM
#3
Re: Insert texts into a multi-row CEdit
A couple of methods :
CString str;
m_edit_control.GetWindowText(str);
str += "new line \r\n";
m_edit_control.SetWindowText(str);
Another method :
m_edit_controSetSel(m_edit_control.GetWindowTextLength(),-1);
m_edit_control.ReplaceSel("new line \r\n");
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
|