home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / atl / activedoc / activedoc.txt < prev    next >
Text File  |  1998-03-26  |  1KB  |  34 lines

  1.  
  2. ActiveX Document Sample
  3.  
  4. This sample demonstrates how to implement an ActiveX Document
  5. Server. The program demonstrates the following:
  6.  
  7.  * How to implement the interfaces IOleDocument and IOleDocumentView
  8.  * How to perform menu merging with the container
  9.  * How to implement a toolbar in your object
  10.  * How to override IPersistStreamInit Load and Save to perform custom
  11.     saving and loading
  12.  * How to use CDialogImpl to implement an About dialog box.
  13.  * How to subclass the Rich Text Edit Control
  14.  
  15. To use the sample, build the project. Then start up Microsoft
  16. Office Binder and from the Section menu select Add. You should
  17. then see an icon labeled ActiveDoc Class. Select this icon and
  18. click OK. You should see the object embedded in Office Binder.
  19. Notice that the menus have been merged and the ActiveDoc's toolbar
  20. is shown. You can enter text and use the menu and toolbar buttons
  21. to change the color of the text that is typed.
  22.  
  23. The sample contains the following main files:
  24.  
  25. Menu.h        - Code to handle menu merging and sharing
  26. ActiveDoc.cpp - Implementation of DLL Exports
  27. ActiveCtl.h   - Declaration of the CActiveDoc class
  28. ActiveCtl.cpp - Implements CActiveDoc which represents the
  29.         overall ActiveDoc object
  30. OleDocument.h - Contains the implementation of the IOleDocument
  31.         and IOleDocumentView interfaces.
  32. Toolbar.h     - Contains CToolbar which helps with the
  33.         implementation of the toolbar
  34.