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:
1.Determine which of the available clipboard formats to display.
2.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.
3.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.