#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.
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.
This function does not return a value.
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.