ITextServices::TxGetDropTarget method

Gets the drop target for the text control.

Syntax


HRESULT TxGetDropTarget(
  IDropTarget **ppDropTarget
);

Parameters

ppDropTarget

Type: IDropTarget**

The target of a drag-and-drop operation in a specified window.

Return value

Type: HRESULT

If the method got the drop target successfully, the return value is S_OK.

For more information on COM error codes, see Error Handling in COM.

Return codeDescription
E_OUTOFMEMORY

Could not create the drop target.

 

Remarks

The host (caller) is responsible for calling RegisterDragDrop or RevokeDragDrop, and for calling Release on the returned drop target when done.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextServices
Conceptual
Windowless Rich Edit Controls
Other Resources
RegisterDragDrop
RevokeDragDrop
IDropTarget

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.