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.
 
 
 
 
 
 
CryptoAlgo Inc daad8a087a Add source files 4 years ago
..
chicago Add source files 4 years ago
daytona Add source files 4 years ago
app.cpp Add source files 4 years ago
app.h Add source files 4 years ago
dirs Add source files 4 years ago
doc.cpp Add source files 4 years ago
doc.h Add source files 4 years ago
ias.cpp Add source files 4 years ago
ias.h Add source files 4 years ago
iocs.cpp Add source files 4 years ago
iocs.h Add source files 4 years ago
ioipf.cpp Add source files 4 years ago
ioipf.h Add source files 4 years ago
ioips.cpp Add source files 4 years ago
ioips.h Add source files 4 years ago
pre.cpp Add source files 4 years ago
pre.h Add source files 4 years ago
readme.txt Add source files 4 years ago
resource.h Add source files 4 years ago
simpcntr.cpp Add source files 4 years ago
simpcntr.def Add source files 4 years ago
simpcntr.h Add source files 4 years ago
simpcntr.ico Add source files 4 years ago
simpcntr.rc Add source files 4 years ago
site.cpp Add source files 4 years ago
site.h Add source files 4 years ago
tests.cpp Add source files 4 years ago
tests.h Add source files 4 years ago
utaccel.h Add source files 4 years ago

readme.txt

Simpcntr
--------
This sample is the simplest OLE 2.0 container that can be written and
still support the visual editing feature. The sample has no native
file format, and can only support one OLE object at a time. The
Insert Object command is used to create an object.

See the MAKEFILE for compilation instructions.


Simple Container Objects Overview :
-----------------------------------
Simple Container consists of three main objects. The top level is CSimpleApp,
under which is CSimpleDoc, and the innermost level is CSimpleSite. CSimpleApp
is used to hold the main window information. (eg. handle to the main window,
handle to the UI Active Object) CSimpleApp always exists as long as the
simple container application is alive. It demonstrates the implementation of
IOleInPlaceFrame, in its nested class COleInPlaceFrame.

The next level object is CSimpleDoc object. It is instantiated by CSimpleApp
when a new document is created. It is used to hold the handles to the main
menus and the submenus and manipulate changes to these menus.

The CSimpleDoc object instantiates CSimpleSite object as the user chooses to
insert a new object into the document. CSimpleSite demonstrates the
implementation of IAdviseSink, IOleInPlaceSite and IOleClientSite through
its nested classes. These interfaces are implemented as CAdviseSink,
COleInPlaceSite and COleClientSite accordingly. CSimpleSite acts as a client
site to communicate to a remote server.