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


CRichEditCtrl::PosFromChar

Retrieves the client area coordinates of a specified character in an edit control.

CPoint PosFromChar(
   UINT nChar 
) const;

Параметры

  • nChar
    The zero-based index of the character.

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

The position of the character, (x, y). For a single-line edit control, the y-coordinate is always zero.

Заметки

For more information, see EM_POSFROMCHAR in the Windows SDK.

Требования

Header: afxcmn.h

См. также

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

CRichEditCtrl Class

CRichEditCtrl Members

Hierarchy Chart

CRichEditCtrl::GetCharPos