Partager via


DVASPECTINFOFLAG (Windows CE 5.0)

Send Feedback

This enumeration contains values used in the DVASPECTINFO structure to indicate whether an object can support optimized drawing of itself.

typedef enum tagDVASPECTINFOFLAG {DVASPECTINFOFLAG_CANOPTIMIZE= 1 } DVASPECTINFOFLAG; 

Elements

  • DVASPECTINFOFLAG_CANOPTIMIZE
    If TRUE, indicates that the object can support optimized rendering of itself. Because most objects on a form share the same font, background color, and border types, leaving these values in the device context allows the next object to use them without having to re-select them.

    Specifically, the object can leave the font, brush, and pen selected on return from the IViewObject::Draw method instead of deselecting these from the device context. The container then must deselect these values at the end of the overall drawing process.

    The object can also leave other drawing state changes in the device context, such as the background color, the text color, raster operation code, the current point, the line drawing, and the poly fill mode.

    The object cannot change state values unless other objects are capable of restoring them. For example, the object cannot leave a changed mode, transformation value, selected bitmap, clip region, or metafile.

Requirements

OS Versions: Windows CE 2.0 and later.
Header: Ocidl.h.

See Also

IViewObject::Draw | DVASPECTINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.