Export (0) Print
Expand All
MFC
Expand Minimize

COleControl::OnGetViewStatus

Called by the framework in response to a container's IViewObjectEx::GetViewStatus request.

virtual DWORD OnGetViewStatus( );

One of the values of the VIEWSTATUS enumeration if successful; otherwise 0. Possible values are any combination of the following:

VIEWSTATUS_OPAQUE

Object is completely opaque. If this bit is not set, the object contains transparent parts. This bit applies only to content-related aspects and not to DVASPECT_ICON or DVASPECT_DOCPRINT.

VIEWSTATUS_SOLIDBKGND

Object has a solid background (consisting in a solid color, not a brush pattern). This bit is meaningful only if VIEWSTATUS_OPAQUE is set and applies only to content-related aspects and not to DVASPECT_ICON or DVASPECT_DOCPRINT.

VIEWSTATUS_DVASPECTOPAQUE

Object supports DVASPECT_OPAQUE. All IViewObjectEx methods that take a drawing aspect as a parameter can be called with this aspect.

VIEWSTATUS_DVASPECTTRANSPARENT

Object supports DVASPECT_TRANSPARENT. All IViewObjectEx methods that take a drawing aspect as a parameter can be called with this aspect.

Override this function if your control uses two-pass drawing. The default implementation returns VIEWSTATUS_OPAQUE.

Header: afxctl.h

Community Additions

ADD
Show:
© 2015 Microsoft