|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| Yes
| Import Library
| user32.lib
| Header File
| winuser.h
| Unicode
| No
| Platform Notes
| None
|
|
|
EnumClipboardFormats
The EnumClipboardFormats function lets you enumerate the data formats that are currently available on
the clipboard.
Clipboard data formats are stored in an ordered list. To perform an
enumeration of clipboard data formats, you make a series of calls to the EnumClipboardFormats function. For each call, the format parameter specifies an available clipboard format, and the function returns
the next available clipboard format.
UINT EnumClipboardFormats(
UINT format
| // specifies a known available clipboard format
| );
|
|
Parameters
format
Specifies a clipboard format that is known to be available.
To start an enumeration of clipboard formats, set format to zero. When format is zero, the function retrieves the first available clipboard format. For
subsequent calls during an enumeration, set format to the result of the previous EnumClipboardFormat call.
Return Values
If the function succeeds, the return value is the clipboard format that
follows the specified format. In other words, the next available clipboard format.
If the function fails, the return value is zero. To get extended error
information, call GetLastError. If the clipboard is not open, the function fails.
If there are no more clipboard formats to enumerate, the return value is zero.
In this case, the GetLastError function returns the value NO_ERROR. This lets you distinguish between
function failure and the end of enumeration.
Remarks
You must open the clipboard before enumerating its formats. Use the OpenClipboard function to open the clipboard. The EnumClipboardFormats function fails if the clipboard is not open.
The EnumClipboardFormats function enumerates formats in the order that they were placed on the
clipboard. If you are copying information to the clipboard, add clipboard objects in
order from the most descriptive clipboard format to the least descriptive
clipboard format. If you are pasting information from the clipboard, retrieve the
first clipboard format that you can handle. That will be the most descriptive
clipboard format that you can handle.
The operating system provides automatic type conversions for certain clipboard
formats. In the case of such a format, this function enumerates the specified
format, then enumerates the formats to which it can be converted. For more
information about clipboard formats and automatic clipboard format type
conversions, see the GetClipboardData and SetClipboardData functions.
See Also
CountClipboardFormats, GetClipboardData, OpenClipboard, RegisterClipboardFormat, SetClipboardData
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|