BUG: Paste-Linking a 256-Color Paintbrush Object

Last reviewed: May 16, 1995
Article ID: Q111612
The information in this article applies to:
  • Microsoft OLE Libraries for Windows and Win32s, version 2.01
  • Microsoft OLE Libraries for Windows NT, version 2.1

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. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

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.


Additional reference words: 2.00 2.01 2.10 3.50
KBCategory: kbole kbbuglist
KBSubcategory: LeTwoApp


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: May 16, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.