Partager via


EnableModeless method

Called by the MSHTML implementation of IOleInPlaceActiveObject::EnableModeless. Also called when MSHTML displays a modal UI.

Syntax

HRESULT retVal = object.EnableModeless(fEnable);

Parameters

fEnable [in]

Type: BOOL

A BOOL that indicates if the host's modeless dialog boxes are enabled or disabled.

TRUE

Modeless dialog boxes are enabled.

FALSE

Modeless dialog boxes are disabled.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.