IsClipboardFormatAvailable

 

Description

This function determines whether the clipboard contains data in the specified for// dwFileAttributes are defined as follows mat.

Syntax

BOOL IsClipboardFormatAvailable( UINT uFormat )

Parameters

uFormat
[input] Specifies a standard or registered clipboard format, like CF_TEXT, CF_DIB etc

Return

Returns TRUE if the clipboard format is available, otherwise returns FALSE

Examples

EX1

int IsClipboardFormatAvailable_ex1()
{
    if(OpenClipboard(NULL))
    {
        if(IsClipboardFormatAvailable(CF_TEXT))
            out_str("Yes,  Text in clipboard");
        else
            out_str("No Text in clipboard");
        
        CloseClipboard();
    }
    return 1;
}

Remark

See Also

OpenClipboard

header to Include

origin.h

Reference