Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to retrieve adapter information for the local computer (including MAC address)
Retrieving current settings for an ODBC connection
A class that encrypts and decrypts files using Cryptography API Functions
Changing file attributes
Disabling drawing in the VFP form
Displaying the associated icons and descriptions for files and folders
Retrieving the User Datagram Protocol (UDP) listener table
Retrieving Window Class information for the VFP window
Windows Shell Icons displayed and exported to ICO files (Vista)
How to register custom Event Log source
Starting a dialog box for connecting to network resources (mapping network drive)
Using the SetErrorMode for determining if a floppy drive is ready
Verifying a file using the Authenticode policy provider
Displaying printer-properties Property Sheet for the specified printer
Enumerating printer drivers installed
GetProcessVersion points at target OS
How to copy the image of a form to the Clipboard using Bitmap API functions
How to retrieve information about a cache entry (Internet Explorer)
How to retrieve list of system DSNs (Data Source Name) with parameters
Winsock: reading and setting socket options
Exporting DLL icon resources as .ICO files
How to extract frames from AVI files
How to retrieve number of objects in the Recycle Bin
Listing INF files in a specified directory
Enumerating data formats currently available on the clipboard

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:
Run this code several times, each time placing new data on the Clipboard from different applications: IE, Word, Excel etc. Sometimes you get dozens of various formats for just a small cell range copied from an Excel spreadsheet.


A value obtained with GetClipboardData function can be either handle -- like bitmap handle -- or a global memory address, where a bigger portion of data is stored. Use API functions GlobalSize, CopyMemory, and possibly GlobalLock and GlobalUnlock, to retrieve this data.

 
  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:
  • ~
4005 bytes  
Created: 2001-07-12 12:00:00  
Modified: 2011-12-10 09:20:22  
Visits in 7 days: 385  
Listed functions:
CloseClipboard
EnumClipboardFormats
GetClipboardData
GetClipboardFormatName
GlobalSize
OpenClipboard
Printer friendly API declarations
My comment:
This function enumerates formats in the order that they were placed on the clipboard.
Registered clipboard formats are identified by values in the range 0xC000 through 0xFFFF.

Now you can see that _CLIPTEXT is just a small tip of an iceberg, which is the Clipboard.

* * *
A screen shot of the C# example:

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 (23.20.196.179)
6.32 hrs.Function: 'CeRapiInitEx'
Function group: 'Remote Application Programming (RAPI)'
 Function: 'GetRgnBox'
13.24 hrs.Example: 'Simple MAPI: how to pick an email recipient from Outlook Express address book'
 Example: 'How to assemble an array of strings and pass it to external function'
14.4 hrs.Example: 'Running MSDOS Shell as a child process with redirected input and output (smarter RUN command)'
Language: 'Visual FoxPro'
 Function: 'SetSystemPowerState'
Function group: 'Power Management'
19.05 hrs.Example: 'Shortcut Menu Class'
 Function: 'DrawFrameControl'
Function group: 'Painting and Drawing'
19.74 hrs.Example: 'How to change display settings: screen resolution, screen refresh rate'
19.75 hrs.Function: 'GetComputerObjectName'
Google
Advertise here!