Using Win32 functions in Visual FoxPro Image Gallery
Code examples:
How to change display settings: screen resolution, screen refresh rate
Adding and deleting Scheduled Tasks using NetScheduleJob API functions
Custom GDI+ class
Converting Unicode data from the Clipboard to a character string using a given code page
Capturing keyboard activity of another application with the Raw Input API (VFP9)
Enumerating data formats currently available on the clipboard
Winsock: sending email messages (SMTP, port 25)
Custom FTP Class for Visual FoxPro application
How to download a file from the FTP server using FtpGetFile
Detecting changes in connections to removable drives (VFP9)
Splash Screen for the VFP application
Custom HttpRequest class (WinINet)
Mapping and disconnecting network drives
How to activate Windows Calculator
Establishing connection using the SQLDriverConnect
Enumerating raw input devices attached to the system (keyboard, mouse, human interface device)
How to convert a bitmap file to monochrome format (1 bpp)
Custom HttpRequest class (WinHTTP)
GDI+: copying to the Clipboard (a) image of active FoxPro window/form, (b) image file
Displaying bitmap using the AlphaBlend function
Using EnumPrinters function to enumerate locally installed printers
Using Font and Text functions
Using WM_COPYDATA for interprocess communication (VFP9)
Extensible Storage Engine class library
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: 260  
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 (54.224.79.93)
4 sec.Function: 'GetParent'
1.96 hrs.Example: 'Listing device drivers in the system: load addresses, names'
 Function: 'CryptGetProvParam'
5.68 hrs.Example: 'How to display a Task Dialog (Vista)'
5.69 hrs.Solution: 'ContextMenu ActiveX Control'
6.37 hrs.Function: 'CryptAcquireContext'
8 hrs.Function: 'waveOutPrepareHeader'
 Example: 'Simple printer queue monitor: deletes, pauses, resumes print jobs for local printer'
13.2 hrs.Function: 'OpenEvent'
 Example: 'Reading and setting explicit Application User Model ID for the current process (Win7)'
Google
Advertise here!