Help Center

CRichEdit.GetLinemethod

Copies a line of text from a rich edit control.

Windowsmethoddocumented

Syntax

FUNCTION GetLine (BYVAL hRichEdit AS HWND, BYVAL which AS DWORD) AS DWSTRING

Parameters

NameDescription
hRichEditThe handle of the rich edit control.
whichThe zero-based index of the line to retrieve from a multiline edit control. A value of zero specifies the topmost line.

Return value

A copy of the line.

Description

Copies a line of text from a rich edit control.

Note: Before sending the EM_GETLINE message, the first word of the buffer has to be set to the size, in characters, of the buffer. The size in the first word is overwritten by the copied line.

Reference

  • Defined in AfxNova/CRichEdit.inc:530
  • Documented in Windows/WIndows Controls/CRichEdit Class.md
  • Topic: CRichEdit Class