Compartir a través de


VIEWSTATUS

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This enumeration contains values used in IViewObjectEx::GetViewStatus to specify the opacity of the object and the drawing aspects supported by the object.

Syntax

typedef enum tagVIEWSTATUS { 
  VIEWSTATUS_OPAQUE = 1, 
  VIEWSTATUS_SOLIDBKGND = 2, 
  VIEWSTATUS_DVASPECTOPAQUE = 4, 
  VIEWSTATUS_DVASPECTTRANSPARENT  = 8 
} VIEWSTATUS;

Elements

  • VIEWSTATUS_OPAQUE
    The object is completely opaque. So, for any aspect, it promises to draw the entire rectangle passed to the IViewObject::Draw method.

    If this value is not set, the object contains transparent parts.

    If it also supports DVASPECT_TRANSPARENT, this aspect can be used to draw the transparent parts only.

    This bit applies only to CONTENT related aspects and not to DVASPECT_ICON or DVASPECT_DOCPRINT.

  • VIEWSTATUS_SOLIDBKGND
    The object has a solid background (consisting in a solid color, not a brush pattern). This bit is meaningful only if VIEWSTATUS_OPAQUE is set.

    This bit applies only to CONTENT related aspects and not to DVASPECT_ICON or DVASPECT_DOCPRINT.

  • VIEWSTATUS_DVASPECTOPAQUE
    The object supports DVASPECT_OPAQUE. All IViewObjectEx methods taking a drawing aspect as a parameter can be called with this aspect.
  • VIEWSTATUS_DVASPECTTRANSPARENT
    The object supports DVASPECT_TRANSPARENT. All IViewObjectEx methods taking a drawing aspect as a parameter can be called with this aspect.

Requirements

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

See Also

Reference

IViewObjectEx
IViewObject::Draw
IViewObjectEx::GetViewStatus