CEdit::GetLine

This method retrieves a line of text from an edit control and place it in lpszBuffer. This call is not processed for a single-line edit control.

The copied line does not contain a null-termination character.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

int GetLine( int nIndex, LPTSTR lpszBuffer ) const;

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

See Also

CEdit::LineLength, CWnd::GetWindowText