Plug-in Reference — Inline Functions — Editor_ActivateTemp

# Editor_ActivateTemp

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

Editor_ActivateTemp( HWND hwnd, UINT nEditID, const POINT_PTR* pptInitialCaret = NULL );

## Parameters

hwnd

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

nEditID

Specifies the ID of the temporary text that you want to activate.

pptInitialCaret

Specifies the initial cursor position.

## Return Values

The return value is the ID of the new document.

## Version

Supported on EmEditor Version 9.00 or later.