CEdit::PosFromChar

CPoint PosFromChar( UINT nChar ) const;

Return Value

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

Parameters

nChar

The zero-based index of the specified character.

Remarks

Call this function to get the position (top-left corner) of a given character within this CEdit object. 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.

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

For more information, see EM_POSFROMCHAR in the Win32 documentation.

CEdit OverviewClass MembersHierarchy Chart

See Also   CEdit::CharFromPos