IViewObjectExImpl::SetAdvise

This method sets up a connection between the control and an advise sink so that the sink can be notified about changes in the control's view. The pointer to the IAdviseSink interface on the advise sink is stored in the control class data member m_spAdviseSink.

Syntax

HRESULT SetAdvise( DWORD aspects, DWORD advf, IAdviseSink* pAdvSink );

At a Glance

Header file: Atlctl.h
Platforms:
Versions: Version 2.0 and later
Complete documentation: Visual C++ documentation

See Also

IViewObjectExImpl Overview, IViewObjectExImpl Methods, IViewObject::SetAdvise, IViewObjectExImpl::GetAdvise