SECEditController::GetLine

Retrieves a line of text from the edit buffer.

Defined in: SECEditControllerCEditEmul.cpp

Syntax

void GetLine(int nLine, int nCol, LPCTSTR &amplpszLine, CString &ampstrLine);

int GetLine(int nIndex, LPTSTR lpszBuffer, int nMaxLength) const;

Return Value

For the version that returns a value, the number of bytes actually copied. The return value is 0 if the line number specified by nIndex is greater then the number of lines in the edit control.

Parameters

nLine

The line index of the text.

nCol

The starting column index on the given line.

lpszLine

Output parameter. Points to the line of text.

strLine

Output parameter. Points to the line of text.

nIndex

Specifies the line number to retrieve from a multiple-line edit control. Line numbers are zero-based; a value of 0 specifies the first line.

lpszBuffer

Points to the buffer that receives a copy of the line.

nMaxLength

Specifies the maximum number of bytes that can be copied to the buffer.

Developer Notes

This version that returns a value is provided as a part of the Objective Edit CEdit compatiblity layer.

See Also

SECEditController