Udostępnij za pośrednictwem


CMFCToolBarButton::SetClipboardFormatName

Renames the global clipboard format.

static void __stdcall SetClipboardFormatName(
   LPCTSTR lpszName
);

Parameters

  • [in] lpszName
    The new name of the global clipboard format. Cannot be NULL.

Remarks

This method makes it possible for drag-and-drop operations to occur among multiple applications. Each application must supply the same clipboard format name.

You must call this method before the framework calls CMFCToolBarButton::GetClipboardFormat.

Requirements

Header: afxtoolbarbutton.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarButton Class

CMFCToolBarButton::GetClipboardFormat