Plug-in Reference — Inline Functions — Editor_DocGetModified

# Editor_DocGetModified

Retrieves the modified state of the text of the specified document. You can use this inline function or explicitly send the EE_GET_MODIFIED message.

Editor_DocGetModified( HWND hwnd, int iDoc );

Editor_DocGetModified( HWND hwnd, HEEDOC hDoc );

## Parameters

hwnd

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

iDoc

Specifies the index of the target document. If -1 is specified, the currently active document will be targeted.

hDoc

Specifies the handle to the target document. If NULL is specified, the currently active document will be targeted.

## Return Values

If the text is modified, the return value is TRUE. If the text is not modified, the return value is FALSE.

## Version

Supported on EmEditor Professional Version 5.00 or later.