/// <summary> /// Disable the IME /// </summary> public void DisableIME() { IsEnabled = false; IMM.ImmAssociateContext(Handle, IntPtr.Zero); IMM.ImmReleaseContext(Handle, _context); }
/// <summary> /// Enable the IME /// </summary> public void EnableIME() { IsEnabled = true; if (_context != IntPtr.Zero) { IMM.ImmAssociateContext(Handle, _context); return; } // This fix the bug that _context is 0 on fullscreen mode. ImeContext.Enable(Handle); }
/// <summary> /// Enable the IME /// </summary> public void EnableIME() { IsEnabled = true; IMM.ImmAssociateContext(Handle, _context); }