DAD_DragEnterEx2 function

[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(
  HWND        hwndTarget,
  const POINT ptStart,
  IDataObject *pdtObject
);

Parameters

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.

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

   
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)

See Also

DAD_DragEnterEx

ImageList_DragEnter