#include <shellapi.h> |
BOOL DragQueryPoint(hDrop, lppt) | |||||
HDROP hDrop; | /* handle of structure for dropped file | */ | |||
POINT FAR* lppt; | /* address of structure for cursor coordinates | */ |
The DragQueryPoint function retrieves the window coordinates of the cursor when a file is dropped.
hDrop
Identifies the internal data structure that describes the dropped file. This structure is returned in the wParam parameter of the WM_DROPFILES message.
lppt
Points to a POINT structure that the function fills with the coordinates of the position at which the cursor was located when the file was dropped. The POINT structure has the following form:
typedef struct tagPOINT { /* pt */
int x;
int y;
} POINT;
For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.
The return value is nonzero if the file is dropped in the client area of the window. Otherwise, it is zero.
The DragQueryPoint function fills the POINT structure with the coordinates of the position at which the cursor was located when the user released the left mouse button. The window for which coordinates are returned is the window that received the WM_DROPFILES message.