IDropTargetImpl Class
class IDropTargetImpl: public IDropTarget
This class is provided as a standard wayMember functions include: IDropTargetImpl, AddRef, Release, QueryInterface, DragEnter, DragOver, DragLeave, Drop, OnDragEnter, OnDragOver, OnDragLeave, OnDrop, RegisterDragDrop, and RevokeDragDrop
Defined in: DropTarget.h
Class Members
STDMETHODIMP_(ULONG) AddRef()
Increment reference count
STDMETHODIMP_(ULONG) Release()
Decrement reference count
STDMETHODIMP QueryInterface(REFIID riid, void** ppv)
Get New interfaces. This object supports IUnknown and IDropTarget
STDMETHODIMP DragEnter(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect)
Called when mouse enters drop target
STDMETHODIMP DragOver(DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect)
Called as mouse goes over drop target
STDMETHODIMP DragLeave()
Called when mouse leaves drop target
STDMETHODIMP Drop(IDataObject *pDataObj, DWORD grfKeyState, POINTL ptl, DWORD *pdwEffect)
Called when data is being dropped
STDMETHODIMP RegisterDragDrop()
Called to register drag drop
STDMETHODIMP RegisterDragDrop(HWND hWnd)
Called to register drag drop
STDMETHODIMP RevokeDragDrop()
Called to revoke drag drop
virtual DWORD OnDragEnter(IDataObject *pDataObj, DWORD grfKeyState, POINT pt)
Called when mouse enters drop target
virtual DWORD OnDragOver(DWORD grfKeyState, POINT pt)
Called when mouse is over drop target
virtual void OnDragLeave()
Called when mouse leaves drop target
virtual DWORD OnDrop(IDataObject *pDataObj, DWORD grfKeyState, POINT pt)
Called when data is being dropped