EN_DROPFILES

The EN_DROPFILES notification message notifies a rich edit control's parent window that the user is attempting to drop files into the control. A rich edit control sends this notification message in the form of a WM_NOTIFY message when it receives the WM_DROPFILES message.

EN_DROPFILES 
wParam = (WPARAM) (UINT) uID; 
lParam = (LPARAM) (ENDROPFILES FAR *) lpEnDropFiles; 
 

Parameters

uID
Identifier of the rich edit control.
lpEnDropFiles
Pointer to an ENDROPFILES structure.

Return Values

Returns a nonzero value to allow the drop operation or zero to ignore the drop.

Remarks

For a rich edit control to receive WM_DROPFILES messages, the parent window must register the control as a drop target by using the DragAcceptFiles function. The control does not register itself.

To receive EN_DROPFILES notifications, specify the ENM_DROPFILES flag in the mask sent with the EM_SETEVENTMASK message.

QuickInfo

  Windows NT: Requires version 3.51 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in richedit.h.

See Also

Rich Edit Controls Overview, Rich Edit Notification Messages, DragAcceptFiles, ENDROPFILES, WM_DROPFILES, WM_NOTIFY