#include <IDragDropSource.h>
|
| enum | { kDefaultIID = IID_IDRAGDROPSOURCE } |
| |
IDragDropSource interface, represents the source object that initiates a drag drop operation. Implementors should derive from either CDragDropSource or CDragDropSource_Extensible.
- See Also
- IDragDropTarget
| virtual SysWireframe IDragDropSource::DoMakeDragOutlineRegion | ( | | ) | const |
| pure virtual |
Provide the cursor to be displayed during the drag based on the response from a target. Return DragDrop::kDefaultDragCursors to use the default platform cursors.
- Parameters
| targetResponse | IN what action the target intends to perform (nothing, copy, move, link) |
| isDragLocal | IN is the drag taking place within the source object (source and target are equivalent) |
- Returns
- CursorSpec to display corresponding to target's intended action
Implemented in CDragDropSource, and CDragDropSource_Extensible.
| virtual IDataBase* IDragDropSource::GetSourceDataBase | ( | | ) | const |
| pure virtual |
Return the database that contains the drag data offered by this source. Used to determine if a source and target belonging to different bosses actually view the same data. Can be used to determine if a drag operation should be a move vs. a copy, but not required.
- Returns
- the affected database (usually returns the database of an IDocument, or nil)
Implemented in CDragDropSource, and CDragDropSource_Extensible.
Create and process (or schedule) the commands needed to complete the drop operation. Normally called on the drop target, this method is also called on sources when the original data needs to be deleted, as in a drag to the trash.
- Parameters
| controller | IN drag drop controller for this operation |
| commandType | IN which operation to perform (sources will only receive kDrag to delete data) |
- Returns
- success or failure of the drop
Implemented in CDragDropSource, and CDragDropSource_Extensible.
| virtual bool16 IDragDropSource::WillDrag | ( | IEvent * | e | ) | const |
| pure virtual |