Editor_GetTextW¶
Retrieves the document text. If the document contains more than 0x7ffffffe UTF-16 code units, the text is truncated to that length. You can use this inline function or explicitly send the EE_GET_TEXTW message.
Editor_GetTextW( HWND hwnd, UINT nBufferSize, LPWSTR szBuffer ); hwnd Specifies the window handle of the view or frame of EmEditor. nBufferSize The capacity of the buffer, in szBuffer A pointer to the buffer that receives the document text. Returns the required buffer size, in If the document contains more than Parameters¶
WCHAR elements, including space for the terminating null character.Return Values¶
WCHAR elements, including the terminating null character.0x7ffffffe UTF-16 code units, the return value is 0x7fffffff. Returns zero if an error occurs.