DragQueryPoint function

Retrieves the position of the mouse pointer at the time a file was dropped during a drag-and-drop operation.

Syntax


BOOL DragQueryPoint(
  _In_  HDROP hDrop,
  _Out_ POINT *lppt
);

Parameters

hDrop [in]

Type: HDROP

Handle of the drop structure that describes the dropped file.

lppt [out]

Type: POINT*

Pointer to a POINT structure that, when this function returns successfully, receives the coordinates of the mouse pointer at the time the file was dropped.

Return value

Type: BOOL

TRUE if the drop occurred in the client area of the window; otherwise FALSE.

Remarks

The window for which coordinates are returned is the window that received the WM_DROPFILES message.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shellapi.h

Library

Shell32.lib

DLL

Shell32.dll (version 4.0 or later)

See also

DragQueryFile

 

 

Show: