Processing the WM_DRAWCLIPBOARD Message
The WM_DRAWCLIPBOARD message notifies a clipboard viewer window that the content of the clipboard has changed. A window should do the following when processing the WM_DRAWCLIPBOARD message:
-
Determine which of the available clipboard formats to display.
-
Retrieve the clipboard data and display it in the window. Or if the clipboard format is CF_OWNERDISPLAY, send a WM_PAINTCLIPBOARD message to the clipboard owner.
-
Send the message to the next window in the clipboard viewer chain.
For an example of processing the WM_DRAWCLIPBOARD message, see the example listing in Example of a Clipboard Viewer.