WindowsXP-SP1/com/oleutest/simpdnd
Microsoft f7ca35dddd First commit 2020-09-30 16:53:49 +02:00
..
chicago First commit 2020-09-30 16:53:49 +02:00
daytona First commit 2020-09-30 16:53:49 +02:00
app.cpp First commit 2020-09-30 16:53:49 +02:00
app.h First commit 2020-09-30 16:53:49 +02:00
bang.ico First commit 2020-09-30 16:53:49 +02:00
default.ico First commit 2020-09-30 16:53:49 +02:00
depend.mk First commit 2020-09-30 16:53:49 +02:00
dirs First commit 2020-09-30 16:53:49 +02:00
doc.cpp First commit 2020-09-30 16:53:49 +02:00
doc.h First commit 2020-09-30 16:53:49 +02:00
dxferobj.cpp First commit 2020-09-30 16:53:49 +02:00
dxferobj.h First commit 2020-09-30 16:53:49 +02:00
enumfetc.h First commit 2020-09-30 16:53:49 +02:00
filelist.mk First commit 2020-09-30 16:53:49 +02:00
ias.cpp First commit 2020-09-30 16:53:49 +02:00
ias.h First commit 2020-09-30 16:53:49 +02:00
ids.cpp First commit 2020-09-30 16:53:49 +02:00
ids.h First commit 2020-09-30 16:53:49 +02:00
idt.cpp First commit 2020-09-30 16:53:49 +02:00
idt.h First commit 2020-09-30 16:53:49 +02:00
iocs.cpp First commit 2020-09-30 16:53:49 +02:00
iocs.h First commit 2020-09-30 16:53:49 +02:00
pre.cpp First commit 2020-09-30 16:53:49 +02:00
pre.h First commit 2020-09-30 16:53:49 +02:00
readme.txt First commit 2020-09-30 16:53:49 +02:00
resource.h First commit 2020-09-30 16:53:49 +02:00
simpdnd.cpp First commit 2020-09-30 16:53:49 +02:00
simpdnd.h First commit 2020-09-30 16:53:49 +02:00
simpdnd.ico First commit 2020-09-30 16:53:49 +02:00
simpdnd.rc First commit 2020-09-30 16:53:49 +02:00
site.cpp First commit 2020-09-30 16:53:49 +02:00
site.h First commit 2020-09-30 16:53:49 +02:00
strings.rc First commit 2020-09-30 16:53:49 +02:00
tests.cpp First commit 2020-09-30 16:53:49 +02:00
tests.h First commit 2020-09-30 16:53:49 +02:00

readme.txt

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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.