Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
Getting a bit more than the _CLIPTEXT offers
Using an Event Object. Part A: running an application that creates an Event object
Using vendor-neutral SQL constructs
Winsock: retrieving the standard host name and IP address for the local machine
How to delete file on FTP server
Obtaining heap handles and enumerating memory blocks for the current VFP session (WinNT only)
Retrieving top-child window for the VFP form
Start an executable from VFP application by using the CreateProcess
Using the MessageBox Win32 function
Monitoring changes in a directory
Using the GetLogicalDriveStrings
Disk in drive A:
GDI+: custom Clock Control
Placing a button on the VFP form as a new child window
Drawing Windows frame controls using the DrawFrameControl function
How to assemble an array of strings and pass it to external function
Using Extended MessageBox() Class
Using FrameRgn for displaying system colors
Accessing examples contained in this reference from a VFP application
Displaying hypertext links with the SysLink control (VFP9, Comctl32.dll)
Retrieving a universal form for the drive-based path for a network resource
Retrieving the command line for the VFP session
Using FillMemory
Using Shell for performing operations on files
Getting a bit more than the _CLIPTEXT offers

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:
When you select a fragment of an application data to the Windows Clipboard, most often this is not just a raw ASCII text format you find later in, but several more data formats.

On the picture above a web page is shown that has a fragment selected and copied to the clipboard. Windows Clipboard stores this fragment in at least four different formats. The HTML format is shown.

To find out how many of them are involved when a fragment from a MS Word document is copied to the clipboard -- run this code.

This code sample shows how to access several text-related data formats stored in the Clipboard. To test it Cut or Copy some data to the clipboard. Select data from MS Office documents, web pages, Notepad files and so on.
  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:
  • ~
4602 bytes  
Created: 2002-02-21 12:49:43  
Modified: 2015-02-16 10:17:54  
Visits in 7 days: 149  
Listed functions:
Printer friendly API declarations
My comment:
Two Clipboard Data Formats: HTML Format and Rich Text Format are not standard but the registered ones. To reach data for these formats you have to register them first. Use the RegisterClipboardFormat function. If they are already registered by another application this function returns their actual Ids.

Differently from the standard Clipboard Formats with constant numeric Ids, these two are linked to constant strings.

Read the HTML Clipboard Format article on the MSDN.

The Netscape 6 browser supports the HTML Format. Its earlier version 4.75, and the Opera 5 -- both do not. So after all, this is how the application decides: to store or not to store.

Somehow this example extends the _CLIPTEXT functionality (CF_TEXT is the only supported format). And dont forget that more Clipboard data formats are available.
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 (
6 sec.Examples
10 sec.Function: 'waveInPrepareHeader'
Function group: 'Windows Multimedia'
17 sec.Function: 'midiOutGetDevCaps'
Function group: 'Windows Multimedia'
25 sec.
Advertise here!