Condividi tramite


CEdit::PosFromChar

Call this function to get the position (top-left corner) of a given character within this CEdit object.

CPoint PosFromChar(
   UINT nChar 
) const;

Parameters

  • nChar
    The zero-based index of the specified character.

Return Value

The coordinates of the top-left corner of the character specified by nChar.

Remarks

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

Nota

This member function is available beginning with Windows 95 and Windows NT 4.0.

For more information, see EM_POSFROMCHAR in the Windows SDK.

Example

See the example for CEdit::LineFromChar.

Requirements

Header: afxwin.h

See Also

Reference

CEdit Class

Hierarchy Chart

CEdit::CharFromPos

Other Resources

CEdit Members