Leaked source code of windows server 2003
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.
 
 
 
 
 
 
Shaswata Das 5c6fe3db62
Create README.md
4 years ago
..
chicago commiting as it is 4 years ago
daytona commiting as it is 4 years ago
app.cpp commiting as it is 4 years ago
app.h commiting as it is 4 years ago
bang.ico commiting as it is 4 years ago
default.ico commiting as it is 4 years ago
depend.mk commiting as it is 4 years ago
dirs commiting as it is 4 years ago
doc.cpp commiting as it is 4 years ago
doc.h commiting as it is 4 years ago
dxferobj.cpp commiting as it is 4 years ago
dxferobj.h commiting as it is 4 years ago
enumfetc.h commiting as it is 4 years ago
filelist.mk commiting as it is 4 years ago
ias.cpp commiting as it is 4 years ago
ias.h commiting as it is 4 years ago
ids.cpp commiting as it is 4 years ago
ids.h commiting as it is 4 years ago
idt.cpp commiting as it is 4 years ago
idt.h commiting as it is 4 years ago
iocs.cpp commiting as it is 4 years ago
iocs.h commiting as it is 4 years ago
pre.cpp commiting as it is 4 years ago
pre.h commiting as it is 4 years ago
readme.txt commiting as it is 4 years ago
resource.h commiting as it is 4 years ago
simpdnd.cpp commiting as it is 4 years ago
simpdnd.h commiting as it is 4 years ago
simpdnd.ico commiting as it is 4 years ago
simpdnd.rc commiting as it is 4 years ago
site.cpp commiting as it is 4 years ago
site.h commiting as it is 4 years ago
strings.rc commiting as it is 4 years ago
tests.cpp commiting as it is 4 years ago
tests.h commiting as it is 4 years ago

readme.txt

Simple Drag and Drop Sample

---------------------------

This sample demonstrates an implementation of OLE 2 drag and drop. It allows
drag and drop operations between two instances of the sample application.
For information on compiling and building the sample, see the makefile in
this directory.


Simple Drag and Drop Objects Overview :
---------------------------------------
Simple Drag and Drop 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 all the main window information. (eg. handle to
the main window, handles to the main, edit, and help menus and the application
instance) CSimpleApp always exists as long as the simple drag and drop
application is alive.

The next level object is CSimpleDoc object. It is instantiated when a new
document is created. It enables and disables the menu items in the main menu.
Since simple drag and drop is a single document interface application, the
user is only allowed to insert one object into the document. It is
necessary to disable certain items from the main menu to avoid incorrect
selection. It also registers the window for drag and drop and manipulates
the clipboard operations, such as copy to the clipboard, flush the clipboard.
It demonstrates the implementates of two OLE interfaces in its nested classes,
IDropSource and IDropTarget. These two interfaces are implemented as
CDropSource and CDropTarget respectively.

The CSimpleDoc object instantiates two different objects based on the user
selection from the main menu. The CSimpleSite object is instantiated if the
user chooses to insert a new object into the document. CSimpleSite
demonstrates the implementation of IAdviseSink and IOleClientSite through its
nested classes. These two interfaces are implemented as CAdviseSink and
COleClientSite accordingly. CSimpleSite manipulates the storage handling and
acts as a client site to communicate to a remote server. Such server can be
an executable server or a dll server. The CDataXferObj object is instantiated
when the user chooses to copy the existing object from the current document.
it is required to copy an object to the clipboard. CDataXferObj demonstrates
the IDataObject interface implementation and performs data transfer
operations.