IVsIME::AttachContext Method (IntPtr, Int32, array<VSIME_ERR>^)
Visual Studio 2015
Associates or disassociates an Input Method Editor (IME) context with an editor window. For more information about IME contexts, see .ime_6yus
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- hwnd
-
Type:
System::IntPtr
[in] The handle of the editor window.
- fAttach
-
Type:
System::Int32
[in] Boolean. Set to true to attach an IME context to the window. Set to false to destroy an attached IME context.
- 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::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsIME::AttachContext( [in] HWND hwnd, [in] BOOL fAttach, [out] VSIME_ERR * perr );
Show: