0 out of 1 rated this helpful - Rate this topic

WM_DROPFILES message

Applies to: desktop apps only

Sent when the user drops a file on the window of an application that has registered itself as a recipient of dropped files.



                PostMessage(

    (HWND) hWndControl,   // handle to destination control

    (UINT) WM_DROPFILES,  // message ID

    (WPARAM) wParam,      // = (WPARAM) (HDROP) hDrop;

    (LPARAM) lParam       // = 0; not used, must be zero 

);

            

Parameters

hDrop

A handle to an internal structure describing the dropped files. Pass this handle DragFinish, DragQueryFile, or DragQueryPoint to retrieve information about the dropped files.

lParam

Must be zero.

Return value

An application should return zero if it processes this message.

Remarks

The HDROP handle is declared in Shellapi.h. You must include this header in your build to use WM_DROPFILES. For further discussion of how to use drag-and-drop to transfer Shell data, see Transferring Shell Data Using Drag-and-Drop or the Clipboard.

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows 2000 Server

Header

Winuser.h

See also

PostMessage
DragAcceptFiles

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Value
WM_DROPFILES = &H233