Editor_GetWord

Retrieves a word at the cursor position. You can use this inline function or explicitly send the EE_GET_WORD message.

Editor_GetWord( HWND hwnd, UINT nBufferSize, LPWSTR szBuffer );

Parameters

hwnd

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

nBufferSize

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

Version

Supported on EmEditor Version 10.00 or later.