Editor_GetSelTextA

Retrieves the selected ANSI text. You can use this inline function or explicitly send the EE_GET_SEL_TEXTA message.

Editor_GetSelTextA( HWND hwnd, UINT nBufferSize, LPSTR szBuffer );

Parameters

hwnd

Specifies the window handle of the view or frame of EmEditor.

nBufferSize

Specifies the maximum number of characters in bytes 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 bytes, for a buffer that can receive the text. If nBufferSize is not zero, the return value is not used.