Article ID: 111612 - Last Review: October 3, 2003 - Revision: 2.0

BUG: Paste-Linking a 256-Color Paintbrush Object

This article was previously published under Q111612
Expand all | Collapse all

SYMPTOMS

A 256-color bitmap is loaded into Microsoft Paintbrush version 3.11 (included with Windows 3.11) and 3.50 (included with Windows NT 3.5). The image is selected and then copied to the clipboard. An OLE 2.0 application then pastes a link to the object from the clipboard. To perform the paste- link operation, the container calls OleCreateLinkFromData(), specifying OLERENDER_FORMAT as the rendering option and CF_DIB as the desired format.

The resulting link object in the OLE 2.0 application has an incorrect appearance, such as being colored solid black.

STATUS

Microsoft has confirmed this to be a problem with the Object Linking and Embedding libraries version 2.01.

MORE INFORMATION

Normally an OLE 2.0 application will specify OLERENDER_DRAW as the rendering option. This allows OLE to cache a metafile presentation for the object. When a metafile is cached, the 256-color Paintbrush object is displayed correctly.

APPLIES TO
  • Microsoft OLE 2.01
Keywords: 
kbbug KB111612
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations