luyaz
asked on
append text to edittext control
i got this to append the text in the EDITTEXT box;
int iTextLen = GetWindowTextLength(hwndEv ents);
SendMessage(hwndEvents, EM_SETSEL, iTextLen + 2, iTextLen + 2);
SendMessage(hwndEvents, EM_REPLACESEL, 0, (LPARAM) szBuf);
the it append end the of iTextLen which is the last character in the text window.how do i make it to start a new line when ever it appends new text?
int iTextLen = GetWindowTextLength(hwndEv
SendMessage(hwndEvents, EM_SETSEL, iTextLen + 2, iTextLen + 2);
SendMessage(hwndEvents, EM_REPLACESEL, 0, (LPARAM) szBuf);
the it append end the of iTextLen which is the last character in the text window.how do i make it to start a new line when ever it appends new text?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.