Enables or disables a frame’s modeless dialog boxes.
HRESULT EnableModeless(
BOOL fEnable |
//Enable or disable modeless dialog box windows |
); |
Parameter
Return Values
This method supports the standard return value E_UNEXPECTED, as well as the following:
Remarks
The active in-place object calls IOleInPlaceFrame::EnableModeless to enable or disable modeless dialog boxes that the container might be displaying. To display a modal dialog box, the object first calls IOleInPlaceFrame::EnableModeless, specifying FALSE to disable the container’s modeless dialog box windows. After completion, the object calls IOleInPlaceFrame::EnableModeless, specifying TRUE to reenable them.
You should track the value of EnableModeless and check it before displaying a dialog box.
See Also
IOleInPlaceActiveObject::EnableModeless