These clipboard functions are implemented for Windows only. The use of these functions is deprecated and the code is no longer maintained. Use the wxClipboard class instead.
Include files
<wx/clipbrd.h>
::wxClipboardOpen
::wxCloseClipboard
::wxEmptyClipboard
::wxEnumClipboardFormats
::wxGetClipboardData
::wxGetClipboardFormatName
::wxIsClipboardFormatAvailable
::wxOpenClipboard
::wxRegisterClipboardFormat
::wxSetClipboardData
bool wxClipboardOpen()
Returns true if this application has already opened the clipboard.
bool wxCloseClipboard()
Closes the clipboard to allow other applications to use it.
bool wxEmptyClipboard()
Empties the clipboard.
int wxEnumClipboardFormats(intdataFormat)
Enumerates the formats found in a list of available formats that belong to the clipboard. Each call to this function specifies a known available format; the function returns the format that appears next in the list.
dataFormat specifies a known format. If this parameter is zero, the function returns the first format in the list.
The return value specifies the next known clipboard data format if the function is successful. It is zero if the dataFormat parameter specifies the last format in the list of available formats, or if the clipboard is not open.
Before it enumerates the formats function, an application must open the clipboard by using the wxOpenClipboard function.
wxObject * wxGetClipboardData(intdataFormat)
Gets data from the clipboard.
dataFormat may be one of:
The clipboard must have previously been opened for this call to succeed.
bool wxGetClipboardFormatName(intdataFormat, const wxString& formatName, intmaxCount)
Gets the name of a registered clipboard format, and puts it into the buffer formatName which is of maximum length maxCount. dataFormat must not specify a predefined clipboard format.
bool wxIsClipboardFormatAvailable(intdataFormat)
Returns true if the given data format is available on the clipboard.
bool wxOpenClipboard()
Opens the clipboard for passing data to it or getting data from it.
int wxRegisterClipboardFormat(const wxString& formatName)
Registers the clipboard data format name and returns an identifier.
bool wxSetClipboardData(intdataFormat, wxObject *data, intwidth, intheight)
Passes data to the clipboard.
dataFormat may be one of:
The clipboard must have previously been opened for this call to succeed.