Share via


CComControlBase::SendOnViewChange

Notifies all registered advisory sinks that the control's view has changed.

HRESULT SendOnViewChange( 
   DWORD dwAspect, 
   LONG lindex = -1 
);

Parameters

  • dwAspect
    The aspect or view of the control.

  • lindex
    The portion of the view that has changed. Only -1 is valid.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

SendOnViewChange calls IAdviseSink::OnViewChange. The only value of lindex currently supported is -1, which indicates that the entire view is of interest.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class

CComControlBase::m_spAdviseSink