Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IDropTargetHelper::DragEnter method

Notifies the drag-image manager that the drop target's IDropTarget::DragEnter method has been called.

Syntax


HRESULT DragEnter(
  [in] HWND        hwndTarget,
  [in] IDataObject *pDataObject,
  [in] POINT       *ppt,
  [in] DWORD       dwEffect
);

Parameters

hwndTarget [in]

Type: HWND

The target's window handle.

pDataObject [in]

Type: IDataObject*

A pointer to the data object's IDataObject interface.

ppt [in]

Type: POINT*

The POINT structure pointer that was received in the IDropTarget::DragEnter method's pt parameter.

dwEffect [in]

Type: DWORD

The value pointed to by the IDropTarget::DragEnter method's pdwEffect parameter.

Return value

Type: HRESULT

Returns S_OK if successful, or a COM error value otherwise.

Remarks

This method is called by a drop target when its IDropTarget::DragEnter method is called. It notifies the drag-image manager that the drop target has been entered, and provides it with the information needed to display the drag image.

Requirements

Minimum supported client

Windows 2000 Professional, Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 5.0 or later)

See also

IDropTargetHelper

 

 

Community Additions

ADD
Show:
© 2015 Microsoft