Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Set cursor position in a text box

davidgraham
Beginner
181 Views

I want to set the cursor position in a text box.

The default position appears to be at the start of the text, I want it at the end.

Thanks

0 Kudos
2 Replies
IanH
Black Belt
181 Views

You can use the EM_SETSEL message to set the cursor location.  To set it to the end of the text in the control supply the length of text in the edit control (perhaps obtained using the WM_GETTEXTLENGTH message) for both wParam and lParam.

davidgraham
Beginner
181 Views

Thank you

Reply