Condividi tramite


CHtmlView::OnEnableModeless

Called when Internet Explorer or MSHTML displays modal UI.

virtual HRESULT OnEnableModeless(
   BOOL fEnable 
);

Parameters

  • fEnable
    Indicates if the host's modeless dialog boxes are enabled or disabled. If this value is nonzero, modeless dialog boxes are enabled. If this value is zero, modeless dialog boxes are disabled.

Return Value

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

Remarks

Enables or disables modeless dialog boxes when the container creates or destroys a modal dialog box. Override OnEnableModeless to react to the EnableModeless notification from the Microsoft Web Browser control. See IDocHostUIHandler::EnableModeless in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart

IOleInPlaceActiveObject::EnableModeless

Other Resources

CHtmlView Members