GetCaretPos

This function copies the caret’s position, in client coordinates, to the specified POINT structure.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

BOOL GetCaretPos(LPPOINT lpPoint);

Parameters

lpPoint

[out] Long pointer to the POINT structure that is to receive the client coordinates of the caret.

Return Values

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

The caret position is always given in the client coordinates of the window that contains the caret.

See Also

SetCaretPos, POINT