Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to run FoxPro application under different user name (impersonating user)
MapiSendMail class for Visual FoxPro application
URL: splitting into its component parts
Converting path to original case
Deleting a file stored on the FTP server
GDI+: Color Transparency
How to find when the application started
Retrieving long values associated with the class of the VFP window
Retrieving the priority class for the current process
Retrieving top-child window for the VFP form
Uploading file to the FTP server using InternetWriteFile
Using GetSysColor
Yet another modal dialog: now HTML-based
Converting a decimal string to an integer
Displaying Windows shell folders in TreeView control with Visual FoxPro FLL
URL: converting unsafe characters and spaces into escape sequences
Using FrameRgn for displaying system colors
Winsock: changing the byte ordering
Clipping mouse cursor area
Converting long file names to the short format and vice versa
Copying strings through the global memory block
GDI+: cropping images
How to position the GETPRINTER() dialog
How to start the screen saver and how to find whether the screen saver is active
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: 69  
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 (107.22.156.205)
4 sec.Example: 'How to print FoxPro form'
2.98 hrs.Example: 'How to extract frames from AVI files'
 Example: 'Getting a bit more than the _CLIPTEXT offers'
3.21 hrs.Function: 'GdipCreateBitmapFromGraphics'
9.73 hrs.Function: 'LocalFree'
 Example: 'Using GetFileSize'
 Function: 'GetSaveFileName'
10.32 hrs.Example: 'Subclassing CommandButton control to create BackColor property'
11.7 hrs.Example: 'Creating a mailslot'
 Function: 'BlockInput'
Function group: 'Keyboard Input'
Google
Advertise here!