Using Win32 functions in Visual FoxPro Image Gallery
Clipboard
..msdn
AddClipboardFormatListener
ChangeClipboardChain
CloseClipboard
CountClipboardFormats
EmptyClipboard
EnumClipboardFormats
GetClipboardData
GetClipboardFormatName
GetClipboardOwner
GetClipboardSequenceNumber
GetClipboardViewer
GetOpenClipboardWindow
GetPriorityClipboardFormat
GetUpdatedClipboardFormats
IsClipboardFormatAvailable
OpenClipboard
RegisterClipboardFormat
RemoveClipboardFormatListener
SetClipboardData
SetClipboardViewer
Code examples:
Converting Unicode data from the Clipboard to a character string using a given code page
GDI+: Storing content of the Clipboard to a bitmap file
Getting a bit more than the _CLIPTEXT offers
Passing data records between VFP applications via the Clipboard
IsClipboardFormatAvailable
    Add comment     W32 Constants      Translate this page
The IsClipboardFormatAvailable function determines whether the clipboard contains data in the specified format
Code examples:
Passing data records between VFP applications via the Clipboard
GDI+: Storing content of the Clipboard to a bitmap file
Getting a bit more than the _CLIPTEXT offers
Converting Unicode data from the Clipboard to a character string using a given code page
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
Usage:
void ClipboardHasImage()
{
    _RetLogical( 
        IsClipboardFormatAvailable(CF_DIB) );
}
My comment:
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.
Word Index links for the IsClipboardFormatAvailable :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-07-12 12:00:00
Modified: 2011-03-28 12:03:57
Visited in last 7 days: 19
User Contributed Notes:
CALLOATTI | 2005-11-03 15:21:11
CF_TEXT    1
CF_BITMAP    2
CF_METAFILEPICT    3
CF_SYLK    4
CF_DIF    5
CF_TIFF    6
CF_OEMTEXT    7
CF_DIB    8
CF_PALETTE    9
CF_PENDATA    10
CF_RIFF    11
CF_WAVE    12
CF_UNICODETEXT    13
CF_ENHMETAFILE    14
CF_HDROP    15
CF_LOCALE    16
CF_DIBV5    17
CF_PRIVATEFIRST    &H200
CF_PRIVATELAST    &H2FF
CF_GDIOBJFIRST    &H300
CF_GDIOBJLAST    &H3FF
CF_OWNERDISPLAY    &H80
CF_DSPTEXT    &H81
CF_DSPBITMAP    &H82
CF_DSPMETAFILEPICT    &H83
CF_DSPENHMETAFILE    &H8E

Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.72.162)
13 sec.Function: 'GdipDrawPieI'
24 sec.Function: 'getsockopt'
37 sec.Function: 'waveInOpen'
50 sec.Function: 'Process32First'
1.05 min.Function: 'InternetQueryDataAvailable'
1.23 min.Function: 'LoadImage'
1.45 min.Function: 'GdipSaveImageToFile'
1.67 min.Function: 'WNetGetProviderName'
1.88 min.Function: 'DestroyWindow'
2.08 min.Function: 'FileTimeToLocalFileTime'
Google
Advertise here!