LineIndex
Get index of first character in a line
int LineIndex( int nLine = -1 )const
The character index of the line specified in nLine or -1 if the specified line number is greater then the number of lines in the edit control.
EX1
#include <..\OriginLab\DialogEx.h> #define IDC_EDIT1 1001 void Edit_LineIndex(Dialog& MyDlg) { Edit ed = MyDlg.GetItem(IDC_EDIT1); int nIndex = ed.LineIndex(); }
Call this function to retrieve 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.
Control.h