The EM_GETTEXTRANGE message retrieves a specified range of characters from a rich edit control.
EM_GETTEXTRANGE
wParam = 0;
lParam = (LPARAM) (TEXTRANGE FAR *) lpRange;
Returns the number of characters copied, not including the terminating null character.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in richedit.h.
Rich Edit Controls Overview, Rich Edit Messages, TEXTRANGE