Share via


DVASPECTINFOFLAG

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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

Syntax

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

Header ocidl.h
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

IViewObject::Draw
DVASPECTINFO