Dela via


CWnd::OnRenderAllFormats

The Clipboard owner's OnRenderAllFormats member function is called by the framework when the owner application is being destroyed.

afx_msg void OnRenderAllFormats( );

Remarks

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 Windows 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 member function before calling the SetClipboardData Windows function and call the CloseClipboard Windows function afterward.

Requirements

Header: afxwin.h

See Also

Concepts

CWnd Members

Reference

CWnd Class

Hierarchy Chart

CloseClipboard

CWnd::OpenClipboard

SetClipboardData

CWnd::OnRenderFormat

WM_RENDERALLFORMATS