EM_SETCARETINDEX message

Sets the zero-based index value of the position of the caret in an edit control.

Parameters

wParam

The new zero-based index value of the position of the caret.

lParam

Must be zero.

Return value

This message does not return a value.

Remarks

If the index is out of the range of the text in an edit control, the index will be adjusted to fit inside the range of the text.

Requirements

Minimum supported client
Windows 10, 1809 [desktop apps only]
Minimum supported server
Windows Server 2019 [desktop apps only]
Header
CommCtrl.h

See also

Reference

EM_GETCARETINDEX