The sample illustrates the use of COM containment to achieve code reuse. The Map Zoom In tool included
with ArcMap is contained by a visual basic object. The majority of the properties and methods
of the VB object are simply passed to the contained object.
How to use:
Open the sample, and compile it to make prjContZoom.dll.
In the Customize dialog, click on 'Add from file' and select this dll.
Under the Commands tab, select the My Zoom In command from the Developer
Samples category, and drag it on to a toolbar. Dismiss the Customize
Click on the tool, and start using it.
Inspect the code and note the creation of the contained object, and its subsequent use.