Share

IAcadToolDragSource Interface

Class Hierarchy

IAcadToolDragSource

File

AcTc.idl

Description

A stock tool implements this interface to receive notification when the tools belonging to the stock tool are dragged and dropped. This interface is queried from IAcadStockTool using QueryInterface(). If this interface is implemented by a stock tool, the framework does the following:

  1. When a tool belonging to the stock tool is dragged and dropped, the framework calls its BeginDrag(), DragInProgress(), and EndDrag() methods before, during, and after the drag-and-drop operation, respectively. The stock tool can use this event sequence to copy data to the data object, allowing it to be dropped in its intended target.
  2. When the tools belonging to the stock tool are dropped in the drawing window, the framework calls the DragEnterDrawing(), DragOverDrawing(), DragLeaveDrawing(), and DropInDrawing() methods. The stock tool may handle these methods to do special processing during the drop operation. If the stock tool does not handle DropInDrawing() when a single tool is dropped, the framework takes the default action of calling the IAcadTool::Execute() method.

Links

IAcadToolDragSource Methods

Was this information helpful?