There is an edit control that I focus on using setFocus , but the cursor is at the beginning of the line. How to move it to the end?
1 answer
https://msdn.microsoft.com/en-us/library/windows/desktop/bb775460(v=vs.85).aspx
SendMessageto send messages.GetWindowTextorWM_GETTEXTto get the text length.
I can not yet find confirmation whether they will return the length if I pass null and 0.EM_SETSELto put the cursor in the desired position.
|