英语水平太低,只有求大家帮忙看看了?
以下是CEdit::LineIndex在MSDN中的描述,大虾能解释一下这个函数的用法吗?
CEdit::LineIndex
This method retrieves the character index of a line within a multiple-line edit control. The character index is the number of characters from the beginning of the edit control to the specified line.
This method is only processed by multiple-line edit controls.
int LineIndex(
int nLine = –1 )
const;
Parameters
nLine
Contains the index value for the desired line in the text of the edit control, or contains –1. If nLine is –1, it specifies the current line, that is, the line that contains the caret.