windows_programming_notes.nbk: Home | Index | Next Page: WM_ENABLE | Previous Page: WM_DRAWITEM


 WM_DROPFILES

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

WM_DROPFILES hDrop = (HDROP) wParam;

Parameters

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

Return Values

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.

See Also DragAcceptFiles

Requirements

  Windows NT/2000: Requires Windows NT 3.1 or later. 
  Windows 95/98/Me: Requires Windows 95 or later. 
  Header: Declared in winuser.h.

windows_programming_notes.nbk: Home | Index | Next Page: WM_ENABLE | Previous Page: WM_DRAWITEM


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time