EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions


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 );



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


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


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.


Supported on EmEditor Version 10.00 or later.

Copyright 2003-2016 by Emurasoft, Inc.