Clipboard functionsThese 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
::wxClipboardOpenbool wxClipboardOpen() Returns true if this application has already opened the clipboard.
::wxCloseClipboardbool wxCloseClipboard() Closes the clipboard to allow other applications to use it.
::wxEmptyClipboardbool wxEmptyClipboard() Empties the clipboard.
::wxEnumClipboardFormatsint wxEnumClipboardFormats(int dataFormat) 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.
::wxGetClipboardDatawxObject * wxGetClipboardData(int dataFormat) Gets data from the clipboard. dataFormat may be one of:
The clipboard must have previously been opened for this call to succeed.
::wxGetClipboardFormatNamebool wxGetClipboardFormatName(int dataFormat, const wxString& formatName, int maxCount) 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.
::wxIsClipboardFormatAvailablebool wxIsClipboardFormatAvailable(int dataFormat) Returns true if the given data format is available on the clipboard.
::wxOpenClipboardbool wxOpenClipboard() Opens the clipboard for passing data to it or getting data from it.
::wxRegisterClipboardFormatint wxRegisterClipboardFormat(const wxString& formatName) Registers the clipboard data format name and returns an identifier.
::wxSetClipboardDatabool wxSetClipboardData(int dataFormat, wxObject* data, int width, int height) Passes data to the clipboard. dataFormat may be one of:
The clipboard must have previously been opened for this call to succeed.
|