Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to disable the Windows Clipboard (VFP9)
Semi-transparent Form
Writing entries to custom Event Log
Placing an arbitrary rectangular area of main VFP window on the Clipboard
Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)
Displaying icons in the system tray (VFP9)
Custom FTP Class for Visual FoxPro application
Custom HttpRequest class (WinHTTP)
How to print FoxPro form
Switching between keyboard layouts
How to enable the SE_SHUTDOWN_NAME privilege for the application
How to find which fonts Windows uses for drawing captions, menus and message boxes
Printing text with the Escape function
Windows Shell Icons displayed and exported to ICO files (Vista)
How to print a bitmap file
GDI+: Scrolling through large image using the mouse
How to make a VFP form fading out when released (GDI version)
How to retrieve adapter information for the local computer (including MAC address)
Moving shortcut to a specified position on the Windows Desktop
Displaying bitmap using the AlphaBlend function
How to display advanced Task Dialog (Vista)
Reading and setting system access privileges for the current process
Storing screen shot of a form to bitmap file
Setting the mouse capture to the specified window
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: 150  
    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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (
    28 sec.Function: 'MAPIAddress'
    Function group: 'Simple MAPI'
    49 sec.Function: 'WSAStartup'
    Function group: 'Windows Sockets 2 (Winsock)'
    1.2 min.Function: 'mixerGetLineInfo'
    Function group: 'Windows Multimedia'
    1.57 min.Login
    1.92 min.Function: 'MapViewOfFile'
    2.3 min.
    Function group: 'Simple MAPI'
    2.68 min.Function: 'GetPrinter'
    Function group: 'Printing and Print Spooler'
    3.03 min.Function: 'waveOutWrite'
    3.43 min.Function: 'SHGetStockIconInfo'
    Function group: 'Shell Functions'
    3.82 min.Example: 'GDI+: Using Scale and Shear transformations'
    Advertise here!