Share via


DVASPECTINFOFLAG (Compact 2013)

3/26/2014

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

See Also

Reference

Storage Enumerations
IViewObject::Draw
DVASPECTINFO