Поделиться через


CHtmlView::OnEnableModeless

Called when Internet Explorer or MSHTML displays modal UI.

virtual HRESULT OnEnableModeless(
   BOOL fEnable 
);

Параметры

  • 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.

Возвращаемое значение

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

Заметки

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.

Требования

Header: afxhtml.h

См. также

Основные понятия

CHtmlView Class

CHtmlView Members

Hierarchy Chart

IOleInPlaceActiveObject::EnableModeless