win32clipboard.IsClipboardFormatAvailable
int = IsClipboardFormatAvailable(format)
The IsClipboardFormatAvailable function determines whether the clipboard contains data in the specified format.
Parameters
Comments
Typically, an application that recognizes only one clipboard format would call this function when processing the WM_INITMENU or WM_INITMENUPOPUP message. The application would then enable or disable the Paste menu item, depending on the return value. Applications that recognize more than one clipboard format should use the GetPriorityClipboardFormat function for this purpose.
Win32 API References
Return Value
If the clipboard format is available, the return value is nonzero.