IME is on when win32 application runs

Rer 80 Reputation points
2023-08-24T16:44:04.3866667+00:00

IME is on when my application starts running.

I need to get key inputs from WM_KEYDOWN message, and it fails when IME is on.

I hope to have a solution to turn off IME initially.

(My IME: Simplfied Chinese)

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,637 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 83,206 Reputation points
    2023-08-24T17:26:44.0766667+00:00

    There is : ImmDisableIME

    1 person found this answer helpful.
    0 comments No comments