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 1

    https://msdn.microsoft.com/en-us/library/windows/desktop/bb775460(v=vs.85).aspx

    1. SendMessage to send messages.
    2. GetWindowText or WM_GETTEXT to get the text length.
      I can not yet find confirmation whether they will return the length if I pass null and 0.
    3. EM_SETSEL to put the cursor in the desired position.