WM_RENDERALLFORMATS
The WM_RENDERALLFORMATS message is sent to the clipboard owner when the owner application is being destroyed.
This message has no parameters.
An application should return zero if it processes this message.
The clipboard owner should render the data in all the formats it is capable of generating and pass a data handle for each format to the clipboard by calling the SetClipboardData function. This ensures that the clipboard contains valid data even though the application that rendered the data is destroyed. The application should call the OpenClipboard function before calling SetClipboardData and should call the CloseClipboard function afterward.
In this example, the application sends a WM_RENDERFORMAT message to itself for each clipboard format that the application supports:
case WM_RENDERALLFORMATS:
OpenClipboard(hwnd);
SendMessage(hwnd, WM_RENDERFORMAT, CF_DIB, 0L);
SendMessage(hwnd, WM_RENDERFORMAT, CF_BITMAP, 0L);
CloseClipboard();
break;
CloseClipboard, OpenClipboard, SetClipboardData, WM_RENDERFORMAT