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.
HRESULT SetAdvise( DWORD aspects, DWORD advf, IAdviseSink* pAdvSink );
Header file: | Atlctl.h |
Platforms: | |
Versions: | Version 2.0 and later |
Complete documentation: | Visual C++ documentation |
IViewObjectExImpl Overview, IViewObjectExImpl Methods, IViewObject::SetAdvise, IViewObjectExImpl::GetAdvise