PRB: Some OLE Containers Do Not Call IViewObject::Draw

Last reviewed: June 7, 1995
Article ID: Q131155
The information in this article applies to:
  • Microsoft Win32 Software Development Kit (SDK) for Windows NT version 3.5
  • Microsoft OLE Libraries for Windows and Win32s, version 2.01
  • Microsoft OLE Libraries included with:

        - Microsoft Windows NT version 3.5
        - Microsoft Windows 95
    

SYMPTOMS

A custom OLE rendering handler finds that its IViewObject::Draw method is never called by some OLE container applications.

CAUSE

Some OLE container applications never call IViewObject::Draw. These applications do not use the caching and drawing services provided by the object handler. Instead, they do their own caching and drawing of the presentations for OLE objects embedded in their documents.

Two examples of such container applications are Microsoft Word version 6.0 and Microsoft Excel version 5.0. They cache metafile representations of embedded OLE objects, and then do their own drawing of those metafiles.

STATUS

This behavior is by design. It is not possible to get Microsoft Word or Microsoft Excel to use a handler's drawing services.


Additional reference words: 2.01 3.50 4.00 5.00 6.00
KBCategory: kbole kbprb
KBSubcategory: LeTwoOh


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: June 7, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.