onDropFiles


onDropFiles (hWnd, x, y, files$[])

This callback is invoked when the user drags files into your window

Parameter Description
hWnd The handle to the window the files were dragged into
x The x coordinate of the mouse relative to hWnd
y The y coordinate of the mouse relative to hWnd
files$[] An array containing the names of the files that were dragged

Returns

0

Remarks

This is a callback function. You must supply it yourself. To register this callback, use the WinXRegOnDropFiles function.

Examples

' A simple onDropFiles callback function
FUNCTION onDropFiles (hWnd, x, y, files$[])

' Do something to all the files
FOR i = 0 to UBOUND(files$[])

...

NEXT

END FUNCTION

Related Links

WinXRegOnDropFiles