SECEditController::CharFromPos

intSECEditController::CharFromPos(CPointpt)

Retrieves the line and character indices for the character closest to a specified position.

Defined in: SECEditControllerCEditEmul.cpp

Return Value

The return value specifies the zero-based character index of the character nearest the specified point. The return value indicates the last character in the edit control if the specified point is beyond the last character in the control.

Parameters

pt

The coordinates of a point in the viewport.

Developer Notes

This method is provided as a part of the Objective Edit CEdit compatiblity layer.

This method emulates the CRichEdit behavior.

See Also

SECEditController