Help Center

CRichEditCtx.GetCaretPosmethod

Windowsmethoddocumented

Syntax

FUNCTION GetCaretPos () AS DWORD
Also documented as CaretPos — one description covers them all.

Parameters

NameDescription
dwPos(SET) The caret position. If you pass a value of -1, the caret will be positioned at the end of the document.

Return value

(GET) The caret position.

(SET) This property does not return a result.

Description

Gets/sets the caret position.

Example

(GET) PROPERTY CaretPos () AS DWORD (SET) PROPERTY CaretPos (BYVAL dwPos AS DWORD)

Reference

  • Defined in AfxNova/CRichEditCtx.inc:2261
  • Documented in Windows/WIndows Controls/RichEdit/CRichEditCtx Class.md
  • Topic: CRichEditCtx Class