CEdit::PosFromChar
The document is archived and information here might be outdated

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.

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

For more information, see EM_POSFROMCHAR in the Platform SDK.

Example

See the example for CEdit::LineFromChar.

See Also

CEdit Overview | Class Members | Hierarchy Chart | CEdit::CharFromPos

Show:
© 2016 Microsoft