Link to home
Start Free TrialLog in
Avatar of luyaz
luyaz

asked on

append text to edittext control

i got this to append the text in the EDITTEXT box;
int iTextLen = GetWindowTextLength(hwndEvents);
     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
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial