Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Custom GDI+ class
Capturing keyboard activity of another application with the Raw Input API (VFP9)
How to display Windows On-Screen Keyboard
How to print a bitmap file
Using the LoadImage function to have a bitmap file loaded and displayed on VFP main window
Winsock: sending email messages (SMTP, port 25)
System Image List Viewer
Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera
Creating the Save dialog box to specify the drive, directory, and name of a file to save
Custom HttpRequest class (WinHTTP)
Printing Image File, programmatically set print page orientation to landscape
How to convert a bitmap file to monochrome format (1 bpp)
The window and its ancestors
Mapping and disconnecting network drives
How to download a file from the FTP server using FtpGetFile
Using EnumPrinters function to enumerate locally installed printers
Custom FTP Class for Visual FoxPro application
Displaying the associated icons and descriptions for files and folders
Displaying icons in the system tray (VFP9)
How to activate Windows Calculator
Drawing Windows predefined bitmaps using the LoadBitmap functions
Using FoxTray ActiveX control: System Tray Icon and menu attached to VFP form
Sending email messages with Simple MAPI
How to disable the Windows Clipboard (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
Versions:
click to open
Before you begin:

Set the checkbox and the clipboard will be disabled for all running Windows applications.

This FoxPro form is set to be notified when anything is copied to the clipboard -- text, images etc. And it clears the clipboard content on each notification.

Neither timers nor ON KEY handlers are involved.

See also:
  • How to block the PrintScreen key
  • Preventing users from accessing the Windows Desktop and from switching to other applications
  • Capturing keyboard activity of another application using the Raw Input API

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


    User rating: 0/10 (0 votes)
    Rate this code sample:
    • ~
    3412 bytes  
    Created: 2005-05-31 18:26:41  
    Modified: 2011-01-08 08:00:28  
    Visits in 7 days: 113  
    Listed functions:
    CallWindowProc
    ChangeClipboardChain
    GetWindowLong
    SendMessage
    SetClipboardViewer
    Printer friendly API declarations
    My comment:
    The Windows OS has a mechanism that allows to notify a window when the content of the clipboard changes.

    Not just one window can be notified but many. They are organized in a chain. The first window in this chain receives a notification and passes it to the next one, so the notification goes down to the last window registered in this chain.

    Any FoxPro window, the _screen or a form, can be registered as a Clipboard viewer -- this is how it is called. The notifications are actually window messages. And VFP9 handles window messages really good due to extended BINDEVENT() function.

    WM_CHANGECBCHAIN -- this notification is sent after a registered window has been removed from the chain of clipboard viewers.

    WM_DRAWCLIPBOARD -- this notification is sent after the content of the clipboard has changed.
    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.21.156.140)
    3 sec.Example: 'Enumerating Performance Counters'
    6 sec.Example: 'Retrieving the name of the primary domain controller (PDC) and join status information (NT/2000/XP)'
    33.38 min.Function: 'InternetAttemptConnect'
    Function group: 'Internet Functions (WinInet)'
    33.43 min.
    53.3 min.Example: 'How to display Windows On-Screen Keyboard'
    53.37 min.Function: 'SHGetSpecialFolderLocation'
    Function group: 'Shell Functions'
    53.42 min.Example: 'Enumerating print processors and supporting data types installed on the specified server'
    1.25 hrs.Example: 'Enumerating print jobs and retrieving information for default printer (JOB_INFO_1 structures)'
    1.62 hrs.Function: 'MAPIResolveName'
    Function group: 'Simple MAPI'
     Example: 'How to create transparent areas inside a form -- punching holes in the form'
    Google
    Advertise here!