Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Plug-in Reference > Inline Functions

EmEditor Plug-in Reference: Editor_QueryString

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions


Queries the string associated with the specified command. You can use this inline function or explicitly send the EE_QUERY_STRING message.

Editor_QueryString( HWND hwnd, UINT nCmdID, LPWSTR psz, BOOL bShortTitle = FALSE );



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


Specifies an integer indicating the Command ID to execute. Only following commands can be used. See the Command Reference for details.


Command Name

Return Value

4609 through 4609 + 63

List of Recent Documents

file path and name

4864 through 4864 + 63

List of Recent Files to Insert

file path and name

4992 through 4992 + 63

List of Recent Folders

file path and name

5376 through 5376 + 255

Documents List command

window title

5632 through 5632 + 255

Plug-ins List command

plug-in file name

6656 through 6656 + 255

List of Encodings to Reload command

encoding name

7680 through 7680 + 255

List of Encodings to Save

encoding name

9216 through 9216 + 1023

Macros List command

macro path and name


Specifies whether the short version of the string is needed in certain commands.


Specifies the buffer to retrieve the string.

Return Values

If the command ID is valid, the return value is nonzero. Otherwise, the return value is zero.


Supported on EmEditor Professional Version 7.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.