Typically, a clipboard viewer window can display at least the three most common formats: CF_TEXT, CF_BITMAP, and CF_METAFILEPICT. The clipboard viewer window is a convenience for the user and does not affect the data-transaction functions of the clipboard. Clipboard ViewersĪ clipboard viewer is a window that displays the current content of the clipboard. To obtain the clipboard sequence number, call the GetClipboardSequenceNumber function. This number is incremented whenever the contents of the clipboard change. The clipboard for each window station has an associated clipboard sequence number. This command does not involve the clipboard, but it should appear with the clipboard commands on the Edit menu. The content of the clipboard is not changed. The content of the clipboard is not changed.ĭeletes the current selection from the document. Replaces the current selection with the content of the clipboard. The previous content of the clipboard is destroyed. Places a copy of the current selection on the clipboard. Places a copy of the current selection on the clipboard and deletes the selection from the document. Following is a brief description of the standard clipboard commands. Typically, a window procedure transfers information to or from the clipboard in response to the WM_COMMAND message.Ī user typically carries out clipboard operations by choosing commands from an application's Edit menu. For standard (predefined) clipboard formats, this value is a constant defined in Winuser.h for registered clipboard formats, it is the return value of the RegisterClipboardFormat function.Įxcept for registering clipboard formats, individual windows perform most clipboard operations. Each format is identified by an unsigned integer value. A window must not use the clipboard to transfer data without the user's knowledge.Ī memory object on the clipboard can be in any data format, called a clipboard format. A window should transfer data to or from the clipboard only in response to a command from the user. Because all applications have access to the clipboard, data can be easily transferred between applications or within an application. The clipboard is a set of functions and messages that enable applications to transfer data.
0 Comments
Leave a Reply. |