次の方法で共有


IVsUIShell.EnableModeless(Int32) Method

Definition

Enables or disables a frame's modeless dialog box.

public:
 int EnableModeless(int fEnable);
public:
 int EnableModeless(int fEnable);
int EnableModeless(int fEnable);
public int EnableModeless (int fEnable);
abstract member EnableModeless : int -> int
Public Function EnableModeless (fEnable As Integer) As Integer

Parameters

fEnable
Int32

[in] true when exiting a modal state. false when entering a modal state.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIShell::EnableModeless(  
   [in] BOOL fEnable  
);  

This method is used by any VSPackage implementer that needs to display a modal dialog and that is not already involved in an in-place relationship (for example, IVsWindowPane implementers or global command handlers).

This method is identical to the EnableModeless method.

Applies to