BOOL DragQueryPoint(hDrop, lppt) | |||||
HANDLE hDrop; | /* handle of structure for dropped file | */ | |||
LPPOINT lppt; | /* pointer to structure for mouse coordinates | */ |
The DragQueryPoint function retrieves the position of the mouse pointer when a file is dropped.
hDrop
Identifies the internal data structure describing the dropped file.
lppt
Points to a POINT structure the function fills with the coordinates of the mouse pointer when the file was dropped.
The return value is TRUE if the drop occurs in the client area of the window, or FALSE if the drop occurs outside the client area.
The DragQueryPoint function fills the POINT structure with the coordinates of the mouse pointer when the user released the left mouse button. The window for which coordinates are returned is the window that received the WM_DROPFILES message.
DragQueryFile