TE Edit Control Win32 / Win64 Help
Product page

TerDocName

Set or retrieve the current document name.

BOOL TerDocName(hWnd, get, name)
HWND hWnd;The handle of the window to be accessed
BOOL get;Set to TRUE to retrieve the current document name, or set to FALSE to set the new document name.
LPBYTE name;The pointer to receive the current document name, or a pointer to the new document name.

Return Value: This function returns TRUE if successful.

VBScript and JavaScript Compatible methods: The TerDocName method would not work with VBScript and JavaScript since this method uses a reference parameter for document name. Here are two methods can be used with script languages instead:

String TerGetDocName() // retrieve current document name

BOOL TerSetDocName(String NewDocName) // set new document name