COleDataObject::AttachClipboard

Call this function to attach the data object that is currently on the Clipboard to the COleDataObject object.

BOOL AttachClipboard( );

Return Value

Nonzero if successful; otherwise 0.

Remarks

备注

   Calling this function locks the Clipboard until this data object is released. The data object is released in the destructor for the COleDataObject. For more information, see OpenClipboard and CloseClipboard in the Win32 documention.

Requirements

Header: afxole.h

See Also

Reference

COleDataObject Class

Hierarchy Chart

COleDataObject::Attach

COleDataObject::Detach

COleDataObject::Release

Other Resources

COleDataObject Members