Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Enumerating Processes -- Win9*
How to display a user-defined icon in the MessageBox dialog
Browsing Windows Known Folders (Special Folders)
Displaying icons in the system tray (VFP9)
Adding a background image to VFP report (VFP9, ReportListener)
Testing Clipboard functions: emptying the clipboard
A class that encrypts and decrypts files using Cryptography API Functions
CryptoAPI: Collection of Providers class
Mapping and disconnecting network drives
Playing WAV sounds simultaneously
How to detect if additional monitor is connected and active
Creating a console window for Visual FoxPro application
How to print picture stored in enhanced-format metafile (*.emf)
How to find when the application started
How to print FoxPro form
Printing Image File, programmatically set print page orientation to landscape
Retrieving the IP-to-physical address mapping table
Uploading local file to FTP server with FtpPutFile
How to load a user profile
Storing content of the Clipboard to a bitmap file
Writing entries to custom Event Log
Displaying animated images on FoxPro form with BitBlt and StretchBlt functions
Creating an Open dialog box to specify the drive, directory, and name of a file to open (Shell32 version)
How to enable the SE_SHUTDOWN_NAME privilege for the application
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: 250  
    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-2018 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 (
    3 sec.Function: 'CeRapiGetError'
    Function group: 'Remote Application Programming (RAPI)'
    6 sec.Example: 'Custom GDI+ class'
    11 sec.Function: 'CeOpenDatabase'
    Function group: 'Remote Application Programming (RAPI)'
    16 sec.Function: 'closesocket'
    Function group: 'Windows Sockets 2 (Winsock)'
    27 sec.Function: 'GdipGetDpiX'
    Function group: 'GDI+ Graphics'
    Advertise here!