다음을 통해 공유


COleDropTarget Class

Provides the communication mechanism between a window and the OLE libraries.

class COleDropTarget : public CCmdTarget

Remarks

Creating an object of this class allows a window to accept data through the OLE drag-and-drop mechanism.

To get a window to accept drop commands, you should first create an object of the COleDropTarget class, and then call the Register function with a pointer to the desired CWnd object as the only parameter.

For more information on drag-and-drop operations using OLE, see the article Drag and Drop (OLE).

Requirements

Header: afxole.h

See Also

Concepts

HIERSVR Sample: Demonstrates a Server Application with OLE Drag and Drop

OCLIENT Sample: Illustrates a Visual Editing Container Application

COleDropTarget Members

CCmdTarget Class

Hierarchy Chart

COleDropSource Class