EE_GET_SEL_TEXTW

Retrieves the selected Unicode text. You can send this message explicitly or by using the Editor_GetSelTextW inline function.

EE_GET_SEL_TEXTW
wParam = (WPARAM) (UINT) nBufferSize;
lParam = (LPARAM) (LPWSTR) szBuffer;

Parameters

nBufferSize

Specifies the maximum number of characters in words to copy to the buffer, including the NULL character.

szBuffer

Pointer to the buffer that will receive the text.

Return Values

If nBufferSize. is zero, the return value is the required size, in words, for a buffer that can receive the text. If nBufferSize is not zero, the return value is not used.