Freigeben über


CHtmlView::OnDocWindowActivate

Called from the Internet Explorer or MSHTML implementation of IOleInPlaceActiveObject::OnDocWindowActivate, which notifies the active in-place object when the container's document window is activated or deactivated.

virtual HRESULT OnDocWindowActivate(
   BOOL fActivate 
);

Parameters

  • fActivate
    Indicates the state of the document window. If this value is nonzero, the window is being activated. If this value is zero, the window is being deactivated.

Return Value

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

Remarks

Override OnDocWindowActivate to react to the OnDocWindowActivate notification from the Microsoft Web Browser control. See IDocHostUIHandler::OnDocWindowActivate in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Concepts

CHtmlView Class

CHtmlView Members

Hierarchy Chart

IOleInPlaceActiveObject::OnDocWindowActivate