 |
| Enumerating data formats currently available on the clipboard |
User rating: 0/10 (0 votes) | |
|
|
 |
 |
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 rating: 0/10 (0 votes) | |
| 4005 bytes Created: 2001-07-12 12:00:00 Modified: 2011-12-10 09:20:22 Visits in 7 days: 384 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| 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: |
 |
|