DragAcceptFiles

3.1

  #include <shellapi.h>    

  void DragAcceptFiles(hwnd, fAccept)    
  HWND hwnd; /* handle of the registering window */
  BOOL fAccept; /* flag for whether dropped files are accepted */

The DragAcceptFiles function registers whether a given window accepts dropped files.

Parameters

hwnd

Identifies the window registering whether it accepts dropped files.

fAccept

Specifies whether the window specified by the hwnd parameter accepts dropped files. An application should set this value to TRUE to accept dropped files or FALSE to discontinue accepting dropped files.

Return Value

This function does not return a value.

Comments

When an application calls DragAcceptFiles with fAccept set to TRUE, Windows File Manager (WINFILE.EXE) sends the specified window a WM_DROPFILES message each time the user drops a file in that window.