int = LineFromChar(charNo)
Returns the line number of the specified character.
Parameters
charNo=-1 : int
Contains the zero-based index value for the desired character in the text of the edit
control, or -1. If -1, then it specifies the current line.
MFC References
CRichEditCtrl::LineFromChar
Return Value
The zero-based line number of the line containing the character index specified by charNo.
If charNo is -1, the number of the line that contains the first character of the selection is returned.
If there is no selection, the current line number is returned.