IOleInPlaceActiveObject::EnableModeless method

Enables or disables modeless dialog boxes when the container creates or destroys a modal dialog box.

Syntax


HRESULT EnableModeless(
  [in]  BOOL fEnable
);

Parameters

fEnable [in]

Indicates whether to enable modeless dialog box windows (TRUE) or disable them FALSE.

Return value

This method returns S_OK on success.

Notes to Callers

IOleInPlaceActiveObject::EnableModeless is called by the top-level container to enable and disable modeless dialog boxes that the object displays. For the container to display a modal dialog box, it must first call IOleInPlaceActiveObject::EnableModeless, specifying FALSE to disable the object's modeless dialog box windows. When the container is through displaying its modal dialog box, it calls IOleInPlaceActiveObject::EnableModeless, specifying TRUE to reenable the object's modeless dialog boxes.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OleIdl.h

IDL

OleIdl.Idl

IID

IID_IOleInPlaceActiveObject is defined as 00000117-0000-0000-C000-000000000046

See also

IOleInPlaceActiveObject
IOleInPlaceActiveObject::EnableModeless

 

 

Community Additions

ADD
Show:
© 2014 Microsoft