# IAdviseSinkEx::OnViewStatusChange

Notifies the sink that a view status of an object has changed.

HRESULT OnViewStatusChange(

DWORD dwViewStatus | //New view status
); |

Parameters

dwViewStatus
  [in] New view status specified in VIEWSTATUS enumeration values.

Return Values

S_OK
  The sink was successfully notified of the new view status

Remarks

It is important that objects call the IAdviseSink:OnViewChange method whenever the object’s view changes even when the object is in place active. Containers rely on this notification to keep an object’s view up-to-date.

See Also

IAdviseSink:OnViewChange, VIEWSTATUS