int CBCGPEditCtrl::LineFromChar | ( | int | nIndex | ) | const |
Retrieves the number of the line that contains the specified character index.
Call this function to retrieve the number of the line that contains the specified character index. A character index is the number of characters from the beginning of the edit control.
nIndex | Contains the zero-based index value for the desired character in the text of the edit control, or contains -1. If nIndex is -1, it specifies the current line, that is, the line that contains the caret. |