EM_GETTEXTRANGE

The EM_GETTEXTRANGE message retrieves a specified range of characters from a rich edit control.

EM_GETTEXTRANGE 
wParam = 0; 
lParam = (LPARAM) (TEXTRANGE FAR *) lpRange; 
 

Parameters

lpRange
Pointer to a TEXTRANGE structure that specifies the range of characters to retrieve and a buffer to copy the characters to.

Return Values

Returns the number of characters copied, not including the terminating null character.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Messages, TEXTRANGE