Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
GDI+: Storing DLL icon resources in image files
Retrieving configuration information for the specified server (Win98/Me)
Retrieving information about MS-DOS device names using QueryDosDevice (WinNT only)
List of addresses in the AutoDial mapping database
Returning some basic information for the specified INF file
An alternative way of setting Form.Closable to False
GDI+: converting image file to another graphics format
How to save registry key including its subkeys and values to a file
Obtaining the bounding rectangle for the specified device context
Simulating DOEVENTS
Comparing file times
Current directory of the application
Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)
Simple MAPI: how to pick an email recipient from Outlook Express address book
Winsock: retrieving information from a host database for a given host name
Determining whether or not the system is connected to the Internet
How to generate UUID values
Locking and unlocking file of a VFP table
Retrieving the rectangle area where the mouse cursor is confined
Using IsChild() for testing ThisForm.ShowWindow property
CryptoAPI: retrieving list of providers
Enumerating MIDI output devices
Retrieving information about all users currently logged on to the workstation (WinNT only)
Saving available locale records into a cursor
Number of clipboard formats available

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
More code examples    Listed functions    Add comment     W32 Constants      Translate this page Printer friendly version of this code sample
Versions:
click to open
 
#DEFINE CF_TEXT              1
#DEFINE CF_BITMAP            2
#DEFINE CF_METAFILEPICT      3
#DEFINE CF_SYLK              4
#DEFINE CF_TIFF              6
#DEFINE CF_DIF               5
#DEFINE CF_OEMTEXT           7
#DEFINE CF_DIB               8
#DEFINE CF_PALETTE           9
#DEFINE CF_PENDATA          10
#DEFINE CF_RIFF             11
#DEFINE CF_WAVE             12
#DEFINE CF_UNICODETEXT      13
#DEFINE CF_ENHMETAFILE      14
#DEFINE CF_HDROP            15
#DEFINE CF_LOCALE           16
#DEFINE CF_DIBV5            17
DO declare
 
? "Number of formats currently on the clipboard: " +;
    LTRIM(STR(CountClipboardFormats()))
 
cBuffer = Chr(CF_TEXT) + Repli(Chr(0),3) +;
    Chr(CF_OEMTEXT) + Repli(Chr(0),3) +;
    Chr(CF_UNICODETEXT) + Repli(Chr(0),3)
 
? "First available text format, ID: " +;
    LTRIM(STR(GetPriorityClipboardFormat(@cBuffer, 3)))
 
PROCEDURE declare
    DECLARE INTEGER CountClipboardFormats IN user32
 
    DECLARE INTEGER GetPriorityClipboardFormat IN user32;
        STRING @paFormatPriorityList, INTEGER cFormats
 
 
 

User rating: 0/10 (0 votes)
Rate this code sample:
  • ~
1056 bytes  
Created: 2001-07-12 12:00:00  
Modified: 2005-04-07 20:04:23  
Visits in 7 days: 80  
Listed functions:
CountClipboardFormats
GetPriorityClipboardFormat
Printer friendly API declarations
Word Index links for this example:
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.1.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.75.101)
6.53 min.Example: 'Winsock: how to retrieve a service information corresponding to a port'
6.6 min.Example: 'Placing an arbitrary rectangular area of main VFP window on the Clipboard'
1.05 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
 
Function group: 'Device Context'
2.06 hrs.Function: 'WNetGetLastError'
Function group: 'Windows Networking'
 Function: 'waveInOpen'
2.4 hrs.Function: 'CryptGetKeyParam'
6.56 hrs.Example: 'Drawing Windows frame controls using the DrawFrameControl function'
6.57 hrs.Function: 'MAPIFreeBuffer'
6.86 hrs.Function: 'ReleaseCapture'
Google
Advertise here!