Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.51 KB

IsClipboardFormatAvailable.md

File metadata and controls

54 lines (36 loc) · 1.51 KB

Home

Function name : IsClipboardFormatAvailable

Group: Clipboard - Library: user32


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


Code examples:

Getting a bit more than the _CLIPTEXT offers
Converting Unicode data from the Clipboard to a character string using a given code page
Passing data records between VFP applications via the Clipboard
GDI+: Storing content of the Clipboard to a bitmap file

Declaration:

BOOL IsClipboardFormatAvailable(
	UINT  format   // clipboard format
);  

FoxPro declaration:

DECLARE INTEGER IsClipboardFormatAvailable IN user32;
	INTEGER wFormat  

Parameters:

format Specifies a standard or registered clipboard format

For a description of the clipboard formats, see the SetClipboardData function


Return value:

If the clipboard format is available, the return value is TRUE


Comments:

Compare result obtained from this function to zero to get TRUE or FALSE.

As far as I tested this function, if being called with a particular clipboard format code, it returns the same code as a successful result or zero if data in this format is not available.