IRichEditOleCallback::GetDragDropEffect method (richole.h)

Allows the client to specify the effects of a drop operation.

Syntax

HRESULT GetDragDropEffect(
  BOOL    fDrag,
  DWORD   grfKeyState,
  LPDWORD pdwEffect
);

Parameters

fDrag

Type: BOOL

TRUE if the query is for a IDropTarget::DragEnter or IDropTarget::DragOver. FALSE if the query is for IDropTarget::Drop.

grfKeyState

Type: DWORD

Key state as defined by OLE.

pdwEffect

Type: LPDWORD

The effect used by a rich edit control. When fDrag is TRUE, on return, its content is set to the effect allowable by the rich edit control. When fDrag is FALSE, on return, the variable is set to the effect to use.

Return value

Type: HRESULT

This method returns S_OK.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header richole.h
DLL Msftedit.dll

See also

IRichEditOleCallback