Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide to Clip-4-Win version 3.0 - <b>dragacceptfiles()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DragAcceptFiles()
Registers whether a window accepts dropped files
------------------------------------------------------------------------------

Syntax
DragAcceptFiles( <hWnd>, <lFlag> )   -->   nil

Arguments
<hWnd> is handle of the window whose WM_DROPFILES message
posting will be enabled or disabled.

<lFlag> specifies whether the window accepts WM_DROPFILES
messages.  Use .T. to accept dropped files or .F. to cancel
accepting dropped files.

Returns
NIL.

Description
This function registers whether a window accepts WM_DROPFILES
messages.  File Manager (WINFILE.EXE) sends these messages
when a user drops a file in a window.

When an application receives WM_DROPFILES message the value of
nwParam contains the handle of an internal structure <hDrop>
with information about dropped files.  Information from that
structure can be retrieved using functions DragQueryFile() - to
get the filename of a dropped file, DragQueryPoint() - to get
the mouse position when a file is dropped, and DragFinish() - to
finish the dropping process.

Note that <hDrop> is valid only while processing WM_DROPFILES
message.  Message WM_DROPFILES is posted, not sent.  That
means the sender doesn't wait until the message is processed.

Example
The example creates a dialog box.  When the code block
attached to the dialog box (function DialogHandler) receives
WM_DROPFILES message the names of received files and the point
where the files were dropped is displayed.
(See source\drop.prg and related files.)

See Also: DragFinish() DragQueryFile() DragQueryPoint()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson