COleDropTarget::Register

Call this function to register your window with the OLE DLLs as a valid drop target.

BOOL Register(
   CWnd* pWnd 
);

Parameters

  • pWnd
    Points to the window that is to be registered as a drop target.

Return Value

Nonzero if registration is successful; otherwise 0.

Remarks

This function must be called for drop operations to be accepted.

For more information, see RegisterDragDrop in the Windows SDK.

Requirements

Header: afxole.h

See Also

Reference

COleDropTarget Class

Hierarchy Chart

COleDropTarget::Revoke

COleDropTarget::COleDropTarget

Other Resources

COleDropTarget Members