Freigeben über


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

Hinweis

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

Concepts

COleDataObject Class

COleDataObject Members

Hierarchy Chart

COleDataObject::Attach

COleDataObject::Detach

COleDataObject::Release