Overriding Essential AcadToolImpl Virtual Methods

Though the AcadToolImpl class provides basic implementations of virtual IAcadTool and IAcadStockTool methods, you can override any of these. You can also override AcadToolImpl virtual methods. AcadToolImpl methods allow your coclass to handle events that are specific to your tool. They include

The executeCallback() method is called when a user selects your tool's icon. This is where you define a tool's behavior. The AcadToolImpl implementation locks the document and sets a re-entry mutex before issuing this callback. The dropCallback() method determines your application's response when a user drops entities on the Tool Palettes window from the AutoCAD editor.

LoadPropertyValue() and SavePropertyValue() virtual methods let you control how your application's data is written to and read from the ATC files. You can use these methods to persist extra data in addition to the tool's properties. The default implementations of these methods handle basic XML reading and writing operations for your tool's properties.