EM_GETCARETINDEX message

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

Parameters

wParam

Must be zero.

lParam

Must be zero.

Return value

The return value is a zero-based index value of the position of the caret.

Requirements

Requirement Value
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_SETCARETINDEX