BOOL IsClipboardFormatAvailable(uFormat) | |||||
UINT uFormat; | /* registered clipboard format | */ |
The IsClipboardFormatAvailable function specifies whether data of a certain format exists on the clipboard.
uFormat
Specifies a registered clipboard format. For information about clipboard formats, see the description of the SetClipboardData function.
The return value is nonzero if data of the specified format is on the clipboard. Otherwise, the return value is zero.
This function is typically called during processing of the WM_INITMENU or WM_INITMENUPOPUP message to determine whether the clipboard contains data that the application can paste. If such data is present, the application typically enables the Paste command (in its Edit menu).
CountClipboardFormats, EnumClipboardFormats, GetClipboardFormatName, GetPriorityClipboardFormat, RegisterClipboardFormat, SetClipboardData