Compartir a través de


IVsIME.FDeactivate(IntPtr, Int32, VSIME_ERR[]) Method

Definition

Enables or disables the Input Method Editor (IME).

public:
 int FDeactivate(IntPtr hwnd, int fDisable, cli::array <Microsoft::VisualStudio::Shell::Interop::VSIME_ERR> ^ perr);
public int FDeactivate (IntPtr hwnd, int fDisable, Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] perr);
abstract member FDeactivate : nativeint * int * Microsoft.VisualStudio.Shell.Interop.VSIME_ERR[] -> int
Public Function FDeactivate (hwnd As IntPtr, fDisable As Integer, perr As VSIME_ERR()) As Integer

Parameters

hwnd
IntPtr

nativeint

[in] Handle to the editor window.

fDisable
Int32

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

perr
VSIME_ERR[]

[out] Pointer to an error value, a value from the VSIME_ERR enumeration. IMENORMAL indicates no error. IMENTOLD indicates there is no IME active.

Returns

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  
);  

Applies to