Delen via


CHtmlView::OnUpdateUI

Notifies the host that the command state has changed.

virtual HRESULT OnUpdateUI( );

Return Value

S_OK if successful, or an OLE-defined error code otherwise.

Remarks

The host should update the state of toolbar buttons. This method is called regardless of the return value from ShowUI. Override OnUpdateUI to react to the UpdateUI notification from the Microsoft Web Browser control.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

IDocHostUIHandler::UpdateUI

CHtmlView::OnShowUI

CHtmlView::OnHideUI

CHtmlView::OnShowContextMenu