win32clipboard.IsClipboardFormatAvailable

int = IsClipboardFormatAvailable(format)

The IsClipboardFormatAvailable function determines whether the clipboard contains data in the specified format.

Parameters

format : int

Specifies a clipboard format. For a description of the standard clipboard formats, see Standard Clipboard Formats.

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

Search for IsClipboardFormatAvailable at msdn, google or google groups.

Search for Standard Clipboard Formats at msdn, google or google groups.

Return Value

If the clipboard format is available, the return value is nonzero.