|
Public Methods |
| | DropTarget (Component *target) |
| | Makes the given component a target for drops.
|
| | ~DropTarget () |
| | Unregisters the component for drops.
|
| void | addDropTargetCallBack (DROPTARGET_CALLBACK callback) |
| | Adds the given callback to listen for drop target events.
|
| HRESULT | fireEvent (DWORD event, DROPTARGET_DATA &data, DWORD *effects) |
| | Fires the given event to the callbacks.
|
| void | addFormat (FORMATETC *format) |
| | Adds a format to the end of the list.
|
| virtual HRESULT _stdcall | Drop (IDataObject *pDataObject, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect) |
| virtual HRESULT _stdcall | DragLeave () |
| virtual HRESULT _stdcall | DragOver (DWORD grfKeyState, POINTL pt, DWORD *pdwEffect) |
| virtual HRESULT _stdcall | DragEnter (IDataObject *pDataObject, DWORD grfKeyState, POINTL pt, DWORD *pdwEffect) |
| virtual ULONG _stdcall | Release () |
| virtual ULONG _stdcall | AddRef () |
| virtual HRESULT _stdcall | QueryInterface (REFIID iid, void **ppvObject) |
Protected Methods |
| HRESULT | queryGetData (DWORD event, DROPTARGET_DATA &data, DWORD *effects) |
| | Tests the event source against the formats.
|
Protected Attributes |
| ULONG | nrefs |
| | Used by IQueryInterface.
|
| FORMATNODE * | flist |
| | Doubly linked list of FORMATETC's.
|
| FORMATNODE * | lastnode |
| | The last node in the list.
|
| DWORD | nformats |
| | The number of items in the list.
|
| Component * | target |
| | The drop target component.
|
| IDataObject * | lastobj |
| | The last object that entered the target.
|
| bool | dropok |
| | Flag specifing the object can be droped.
|
| std::vector< DROPTARGET_CALLBACK > | callbacks |
| | The list of callback functions to call.
|