Condividi tramite


IVsIME.FDeactivate Method

Enables or disables the Input Method Editor (IME).

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function FDeactivate ( _
    hwnd As IntPtr, _
    fDisable As Integer, _
    <OutAttribute> perr As VSIME_ERR() _
) As Integer
int FDeactivate(
    IntPtr hwnd,
    int fDisable,
    VSIME_ERR[] perr
)
int FDeactivate(
    [InAttribute] IntPtr hwnd, 
    [InAttribute] int fDisable, 
    [OutAttribute] array<VSIME_ERR>^ perr
)
abstract FDeactivate : 
        hwnd:IntPtr * 
        fDisable:int * 
        perr:VSIME_ERR[] byref -> int
function FDeactivate(
    hwnd : IntPtr, 
    fDisable : int, 
    perr : VSIME_ERR[]
) : int

Parameters

  • hwnd
    Type: IntPtr

    [in] Handle to the editor window.

  • fDisable
    Type: Int32

    [in] Boolean. If true, disables the IME and destroys the context. Otherwise, activates the IME and attaches the context to the editor window.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsIME::FDeactivate(
   [in] HWND hwnd, 
   [in] BOOL fDisable, 
   [out] VSIME_ERR * perr
);

.NET Framework Security

See Also

Reference

IVsIME Interface

Microsoft.VisualStudio.Shell.Interop Namespace