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


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



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


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

Copyright 2003-2015 by Emurasoft, Inc.