Delayed Rendering of Clipboard Data

There are costs associated with rendering many formats of clipboard data, especially if the application supports graphical formats such as bitmaps or metafiles. Manipulation of GDI objects takes a long time and uses a lot of memory. It makes no sense to process or store this data if the format is never used.

Fortunately, the Win32 APIs provide an easy method for delaying the placement of the data into the clipboard until a request is made to retrieve the data for a given clipboard format. This practice is known as delayed rendering. To use delayed rendering, simply pass NULL as the HANDLE of the clipboard data when setting the data using the SetClipboardData function. When an application requires rendering ...

Get Microsoft Windows 2000 API SuperBible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.