Plug-in Reference — Structures — TEMP_INFO

# TEMP_INFO

Used by EE_EDIT_TEMP message and EVENT_TEMP_SAVING event.

    typedef struct _TEMP_INFO {
    	size_t cbSize;
    	LPCWSTR pszTempText;
    	LPCWSTR pszTitle;
    	LPCWSTR pszIconPath;
    	LPCWSTR pszConfig;
    	POINT_PTR ptInitialCaret;
    	UINT nID;
    	UINT nEncoding;
    	UINT nFlags;
    } TEMP_INFO;

## Members

cbSize

Size of this data structure, in bytes. Set this member to sizeof( TEMP_INFO ) before sending the EE_EDIT_TEMP message.

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.

ptInitialCaret

Specifies the initial cursor position.

nID

Specifies an ID when you want to activate or close the temporary text.

nEncoding

Specifies the encoding of the file.

nFlags

Specifies one of the following values.

TEMP_INFO_OPEN | Opens the temporary text if nID is zero. Activates the existing temporary text if nID is not zero.
TEMP_INFO_CLOSE | Closes the temporary text specified by nID.
TEMP_INFO_SAVE | Saves the temporary text specified by nID.

## Version

Supported on Version 9.00 or later.