This is my code to fill a TextBox using the SendMessage function:
C := 'Hey there';
SendMessage(h1, WM_SETTEXT, 1, Integer(PChar(C)));
Now, how can I move the cursor to the end of the text?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you really want to do this with messages take a look at:
Also there you have the complete reference for edit:
http://msdn.microsoft.com/en-us/library/ff485923%28v=VS.85%29.aspx
In code (no messages) you would do something like this:
With messages: