Επεξεργασία

Κοινή χρήση μέσω


DAD_DragEnterEx2 function (shlobj_core.h)

[DAD_DragEnterEx2 is available in Windows 2000 and Windows XP. It might be altered or unavailable in subsequent versions. Use ImageList_DragEnter instead.]

Locks updates to the specified window during a drag-and-drop operation and displays the drag image at the specified position within the window.

Syntax

BOOL DAD_DragEnterEx2(
  [in]           HWND        hwndTarget,
                 const POINT ptStart,
  [in, optional] IDataObject *pdtObject
);

Parameters

[in] hwndTarget

Type: HWND

A handle to the window that owns the drag image.

ptStart

Type: const POINT

Specifies the coordinates at which to begin displaying the drag image. The coordinates are relative to the upper-left corner of the window, not the client area.

[in, optional] pdtObject

Type: IDataObject*

A pointer to the IDataObject interface on the data object. This data object contains the data being transferred in the drag-and-drop operation. If the drop occurs, this data object will be incorporated into the target. This parameter may be NULL.

Return value

Type: BOOL

Returns TRUE if successful, FALSE otherwise.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.0 or later)
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)

See also

DAD_DragEnterEx

ImageList_DragEnter