The information in this article applies to:
SUMMARYThe EMR_SELECTOBJECT record in an enhanced metafile can indicate that the object to be selected is a stock object. It does so by setting the high order bit in the handle. This article shows how to decipher those records to get a handle to the stock object. MORE INFORMATION
If an EMR_SELECTOBJECT record is encountered while enumerating the records
in an enhanced metafile, the dParm member of the ENHMETARECORD parameter is
normally an index into the handle table of the object to be selected.
Note that this information is important only if the application needs to
decipher the record. Simply passing the EMR_SELECTOBJECT record to
PlayEnhMetaFileRecord() is valid independent of whether or not the object of interest is a stock object.
In Windows 95, optimizations built into the operating system can result in a stock object record being recorded into the metafile even when a specific non-stock object is requested. This can happen, for example, when an application requests a solid brush of color RGB(128,128,128). The operating system recognizes this as the GRAY_BRUSH stock object and enters the stock object record into the metafile accordingly. Additional query words: Windows 95 4.00 3.50 Enumerate EnumEnhMetaFile EnhMetaFileProc missing EMR_CREATEBRUSHINDIRECT
Keywords : kbWinOS2000 kbSDKWin32 |
Last Reviewed: December 15, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |