Поделиться через


CRichEditCtrl::GetCharPos

Gets the position (top-left corner) of a given character within this CRichEditCtrl object.

CPoint GetCharPos(
   long lChar 
) const;

Параметры

  • lChar
    Zero-based index of the character.

Возвращаемое значение

The location of the top-left corner of the character specified by lChar.

Заметки

The character is specified by giving its zero-based index value. If lChar is greater than the index of the last character in this CRichEditCtrl object, the return value specifies the coordinates of the character position just past the last character in this CRichEditCtrl object.

For more information, see EM_POSFROMCHAR in the Windows SDK.

Требования

Header: afxcmn.h

См. также

Основные понятия

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::FindText