A window that recognizes only one clipboard format can simply determine whether that format is available by using the IsClipboardFormatAvailable function.Īfter determining the clipboard format to use, a window calls the GetClipboardData function. This function identifies the best available clipboard format according to a specified priority. This method selects the best available format according to the priority set when the data was placed on the clipboard.Īlternatively, a window can use the GetPriorit圜lipboardFormat function. Typically, a window enumerates the available clipboard formats by using the EnumClipboardFormats function and uses the first format it recognizes. To retrieve paste information from the clipboard, a window first determines the clipboard format to retrieve. For more information, see Delayed Rendering. The memory handle can be NULL, indicating that the window renders the data on request. For each format, the window calls the SetClipboardData function, specifying the format identifier and a global memory handle. To find out which window owns the clipboard, call the GetClipboardOwner function.Īfter emptying the clipboard, the window places data on the clipboard in as many clipboard formats as possible, ordered from the most descriptive clipboard format to the least descriptive. This function sends the WM_DESTROYCLIPBOARD message to the previous clipboard owner, frees resources associated with data on the clipboard, and assigns clipboard ownership to the window that has the clipboard open. To place information on the clipboard, a window first clears any previous clipboard content by using the Empt圜lipboard function. The following topics are discussed in this section. When it has finished, the window must close the clipboard by calling the CloseClipboard function. To find out which window has the clipboard open, call the GetOpenClipboardWindow function. Only one window can have the clipboard open at a time. To place data on or retrieve data from the clipboard, a window must first open the clipboard by using the OpenClipboard function. The following sections describe these operations and related issues. A window places data on the clipboard for cut and copy operations and retrieves data from the clipboard for paste operations. A window should use the clipboard when cutting, copying, or pasting data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |