EM_GETTEXTRANGE message

Retrieves a specified range of characters from a rich edit control.

Parameters

wParam

This parameter is not used; it must be zero.

lParam

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

Return value

The message returns the number of characters copied, not including the terminating null character.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Richedit.h

See also

TEXTRANGE