EmEditor Home - EmEditor Help - Plug-in Reference - Inline Functions

Editor_GetDroppedFile

Retrieves the most recently dropped file. You can use this inline function or explicitly send the EE_GET_DROPPED_FILE message.

Editor_GetDroppedFile( HWND hwnd, int nIndex, LPWSTR pszBuf );

Parameters

hwnd

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

nIndex

Specifies the index of the dropped file. A zero-based index should be specified. If -1 is specified, the total number of the dropped files will be returned.

pszBuf

Specifies a buffer that will receive the dropped file name. The buffer size must be at least MAX_PATH in characters. This parameter can be NULL if -1 is specified in nIndex.

Return Values

The return value is nonzero if the dropped file exists for the specified index. If -1 is specified in nIndex, the return value is the total number of the dropped files.

Version

Supported on EmEditor Version 8.00 or later.

Copyright 2003-2014 by Emurasoft, Inc.