IVsIME::FDeactivate Method (IntPtr, Int32, array<VSIME_ERR>^)

 

Enables or disables the Input Method Editor (IME).

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

int FDeactivate(
	IntPtr hwnd,
	int fDisable,
	array<VSIME_ERR>^ perr
)

Parameters

hwnd
Type: System::IntPtr

[in] Handle to the editor window.

fDisable
Type: System::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
Type: array<Microsoft.VisualStudio.Shell.Interop::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.

Return Value

Type: System::Int32

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

From vsshell.idl:

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