Platform SDK: International Features

WM_IME_KEYDOWN

The WM_IME_KEYDOWN message is sent to an application by the IME to notify the application of a key press. An application can process this message or pass it to the DefWindowProc function to generate a matching WM_KEYDOWN message. This message is usually generated by the IME to keep message order.

A window receives this message through its WindowProc function.

LRESULT CALLBACK WindowProc(
  HWND hwnd,       // handle to window
  UINT uMsg,       // WM_IME_KEYDOWN
  WPARAM wParam,   // virtual-key code
  LPARAM lParam    // key data
);

Parameters

wParam
Specifies the virtual-key code of the key.
lParam
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag, as shown in the following table.
Bit Meaning
0-15 Repeat count.
16-23 Scan code.
24 Extended key. This value is 1 if it is an extended key; otherwise, it is zero.
25-28 Not used.
29 Context code. This value is always zero.
30 Previous key state. This value is 1 is the key is down or zero is it is up.
31 Transition state. This value is always zero.

Return Values

An application should return zero if it processes this message.

Requirements

  Windows NT/2000: Requires Windows NT 4.0 or later.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Imm.h.

See Also

Input Method Editor Overview, Input Method Editor Messages, DefWindowProc, WM_KEYDOWN