Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Custom FTP Class for Visual FoxPro application
Printing Image File, programmatically set print page orientation to landscape
Splash Screen for the VFP application
Attaching menu to a top-level form
Drawing icons associated with the VFP main window
Testing serial ports
Reading the structure of VFP main menu
Accessing Adobe Reader 7.0 main menu from VFP application
Custom HttpRequest class (WinHTTP)
GDI+: sending image of FoxPro form to printer
Using shared memory to exchange data between applications (processes)
Browsing Windows Known Folders (Special Folders)
Disconnecting USB Mass Storage Device programmatically
How to prevent users from accessing the Windows Desktop and from switching to other applications
How to make a VFP form fading out when released (GDI+ version)
Copying picture of the active form to the Clipboard using Enhanced Metafile API functions
How to change display settings: screen resolution, screen refresh rate
Enumerating devices installed on the local machine
System Image List Viewer
Detecting changes in connections to removable drives (VFP9)
Creating a clipping region from the path selected into the device context of a form
How to make a VFP form fading out when released (GDI version)
Switching between keyboard layouts
Using EnumPrinters function to enumerate locally installed printers
Monitoring clipboard content changes (VFP9)

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
Before you begin:
After a VFP form (ThisForm.hWnd) is added to the clipboard format listener list, it receives WM_CLIPBOARDUPDATE message whenever the contents of the clipboard changes.

See also:
  • Enumerating data formats currently available on the clipboard
  • How to disable the Windows Clipboard
  • Capturing keyboard activity of another application with the Raw Input API

      Members area. Log in to view this example.
      User name:
      Forgot your password?
      Sign up for
    the Membership

    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    5213 bytes  
    Created: 2015-01-27 10:13:38  
    Modified: 2015-03-23 16:32:49  
    Visits in 7 days: 171  
    Listed functions:
    Printer friendly API declarations
    My comment:
    #define WM_CLIPBOARDUPDATE 0x031D

    See also:
    The result returned by this API function increments whenever the content of the clipboard changes, including emptying the clipboard. For example, a single copy-paste operation in Excel, first clears the clipboard, and then adds data to it in N different formats. So before-and-after difference will be N+1.
    Word Index links for this example:
    Translate this page:
      Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
    User Contributed Notes:
    There are no notes on this subject.

    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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    15 sec.Example: 'Obtaining names of local and global groups for current user (WinNT/XP/2K)'
    40 sec.Function: 'waveInStart'
    Function group: 'Windows Multimedia'
    51 sec.Example: 'GDI+: reading and writing metadata in JPEG and TIFF files'
    1.05 min.Example: 'How to draw custom Window Caption on FoxPro form'
    1.25 min.Function: 'SetTextCharacterExtra'
    Function group: 'Font and Text'
    1.47 min.Project
    1.68 min.Function: 'SQLGetConfigMode'
    Function group: 'ODBC API'
    1.88 min.Function: 'WriteFile'
    Function group: 'File Management'
    2.08 min.Function: 'EnumPrinterDrivers'
    Function group: 'Printing and Print Spooler'
    2.28 min.Example: 'Detecting changes in connections to removable drives (VFP9)'
    Advertise here!