コード例 #1
0
        /// <summary>
        /// Disable the IME
        /// </summary>
        public void DisableIME()
        {
            IsEnabled = false;

            IMM.ImmAssociateContext(Handle, IntPtr.Zero);
            IMM.ImmReleaseContext(Handle, _context);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        /// <summary>
        /// Enable the IME
        /// </summary>
        public void EnableIME()
        {
            IsEnabled = true;

            IMM.ImmAssociateContext(Handle, _context);
        }