The information in this article applies to:
SYMPTOMSWhen an OLE client application displays an object on certain display devices, the object appears smaller than it does when displayed in the OLE server application. The object appears distorted in the client application. CAUSEA metafile is used as the OLE object presentation format. The metafile is distorted because the DPtoLP() and LPtoDP() functions should use "logical inches" to convert measurement units into the MM_HIMETRIC mapping mode; however, they do not. RESOLUTIONRewrite the DPtoLP() and LPtoDP() functions in the OLE client application to perform the proper metafile scaling. These rewritten functions will not scale bitmaps properly. They should be used only with the metafile presentation format. MORE INFORMATIONThe code below rewrites the DPtoLP() and LPtoDP() functions to correctly map logical inches into the MM_HIMETRIC mapping mode:
Additional query words: 3.10 1.00
Keywords : |
Last Reviewed: October 26, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |