After I ran SetWindowText for a CEdit edit box, the input cursor will jump to the position before the first character in the box. How to put it in the position after the last character? Thank you!
Printable View
After I ran SetWindowText for a CEdit edit box, the input cursor will jump to the position before the first character in the box. How to put it in the position after the last character? Thank you!
Use SetSel method
Set selection at the end of text.
Like in this FAQ.
use SetSel and give the string length as first and second parameter..
it will put the cursor at the end
ProElite