Project::GetDragDropInfo

Description

Get Drag-and-Drop information for the last dropped file..

Syntax

BOOL GetDragDropInfo( string & strWinName, int & iWinLayer, int & iFileIndex, int & iFileCount, string & strFileName )

Parameters

strWinName
[output]The string that will receive the name of the window that the files were dropped on. If not dropped on a window then the string will be blank.
iWinLayer
[output]The index of the window's layer that the files were dropped on.
iFileIndex
[output]The index of the dropped file currently being handled.
iFileCount
[output]The number of files that were dropped.
strFileName
[output]The string that will receive the file name of the dropped file.

Return

True when success, else false.

Examples

EX1

void Project_GetDragDropInfo_ex1()
{
    string strWinName, strFileName;
    int iWinLayer, iFileIndex, iFileCount;
    
    BOOL b = Project.GetDragDropInfo(strWinName, iWinLayer, iFileIndex, iFileCount, strFileName);
    if( b )
    {
        printf("Project.DragDropInfo\n");
        printf("    WinName = %s\n", strWinName);
        printf("    Layer   = %d\n", iWinLayer);
        printf("    Index   = %d\n", iFileIndex);
        printf("    Count   = %d\n", iFileCount);
        printf("    FileName= %s\n", strFileName);
    }
}

Remark

See Also

header to Include

origin.h