Editor_EditTemp

Creates temporary text as a new document. You can use this inline function or explicitly send the EE_EDIT_TEMP message.

Editor_EditTemp( HWND hwnd, LPCWSTR pszTempText, LPCWSTR pszTitle, LPCWSTR pszIconPath, LPCWSTR pszConfig, UINT nEncoding, const POINT_PTR* pptInitialCaret = NULL, UINT nFlags = 0 );

Parameters

hwnd

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

pszTempText

Specifies temporary text on memory that you want to open as a new document.

pszTitle

Specifies the title of the new document.

pszIconPath

Specifies the path and file name of the icon that you want to use as a new document.

pszConfig

Specifies the name of the configuration that the new document should use.

nEncoding

Specifies the encoding of the file. The encoding constants are listed in "EmEditor Macro Reference: Encoding Constants".

pptInitialCaret

Specifies the initial cursor position.

nFlags

This value must be zero.

Return Values

The return value is the ID of the new document.

Version

Supported on EmEditor Version 9.00 or later.