|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Call this function to retrieve a line of text from an edit control and places it in lpszBuffer.
int GetLine( int nIndex, LPTSTR lpszBuffer ) const; int GetLine( int nIndex, LPTSTR lpszBuffer, int nMaxLength ) const;
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. This parameter is ignored by a single-line edit control.
Points to the buffer that receives a copy of the line. The first word of the buffer must specify the maximum number of bytes that can be copied to the buffer.
Specifies the maximum number of bytes that can be copied to the buffer. GetLine places this value in the first word of lpszBuffer before making the call to Windows.
The copied line does not contain a null-termination character.
For more information, see EM_GETLINE in the Platform SDK.