Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.4 KiB

  1. Simpcntr
  2. --------
  3. This sample is the simplest OLE 2.0 container that can be written and
  4. still support the visual editing feature. The sample has no native
  5. file format, and can only support one OLE object at a time. The
  6. Insert Object command is used to create an object.
  7. See the MAKEFILE for compilation instructions.
  8. Simple Container Objects Overview :
  9. -----------------------------------
  10. Simple Container consists of three main objects. The top level is CSimpleApp,
  11. under which is CSimpleDoc, and the innermost level is CSimpleSite. CSimpleApp
  12. is used to hold the main window information. (eg. handle to the main window,
  13. handle to the UI Active Object) CSimpleApp always exists as long as the
  14. simple container application is alive. It demonstrates the implementation of
  15. IOleInPlaceFrame, in its nested class COleInPlaceFrame.
  16. The next level object is CSimpleDoc object. It is instantiated by CSimpleApp
  17. when a new document is created. It is used to hold the handles to the main
  18. menus and the submenus and manipulate changes to these menus.
  19. The CSimpleDoc object instantiates CSimpleSite object as the user chooses to
  20. insert a new object into the document. CSimpleSite demonstrates the
  21. implementation of IAdviseSink, IOleInPlaceSite and IOleClientSite through
  22. its nested classes. These interfaces are implemented as CAdviseSink,
  23. COleInPlaceSite and COleClientSite accordingly. CSimpleSite acts as a client
  24. site to communicate to a remote server.
  25.