ActiveX Document Sample This sample demonstrates how to implement an ActiveX Document Server. The program demonstrates the following: * How to implement the interfaces IOleDocument and IOleDocumentView * How to perform menu merging with the container * How to implement a toolbar in your object * How to override IPersistStreamInit Load and Save to perform custom saving and loading * How to use CDialogImpl to implement an About dialog box. * How to subclass the Rich Text Edit Control To use the sample, build the project. Then start up Microsoft Office Binder and from the Section menu select Add. You should then see an icon labeled ActiveDoc Class. Select this icon and click OK. You should see the object embedded in Office Binder. Notice that the menus have been merged and the ActiveDoc's toolbar is shown. You can enter text and use the menu and toolbar buttons to change the color of the text that is typed. The sample contains the following main files: Menu.h - Code to handle menu merging and sharing ActiveDoc.cpp - Implementation of DLL Exports ActiveCtl.h - Declaration of the CActiveDoc class ActiveCtl.cpp - Implements CActiveDoc which represents the overall ActiveDoc object OleDocument.h - Contains the implementation of the IOleDocument and IOleDocumentView interfaces. Toolbar.h - Contains CToolbar which helps with the implementation of the toolbar