WM_IME_KEYDOWN message

Sent to an application by the IME to notify the application of a key press and to keep message order. A window receives this message through its WindowProc function.



LRESULT CALLBACK WindowProc(
  HWND  hwnd,        
  WM_IME_KEYDOWN,  
  WPARAM wParam, 
  LPARAM lParam      
);

Parameters

hwnd

A handle to window.

wParam

Virtual key code of the key.

lParam

Repeat count, scan code, extended key flag, context code, previous key state flag, and transition state flag, as shown in the following table.

BitMeaning
0-15Repeat count.
16-23Scan code.
24Extended key. This value is 1 if it is an extended key. Otherwise, it is 0.
25-28Not used.
29Context code. This value is always 0.
30Previous key state. This value is 1 if the key is down or 0 if it is up.
31Transition state. This value is always 0.

 

Return value

An application should return 0 if it processes this message.

Remarks

An application can process this message or pass it to the DefWindowProc function to generate a matching WM_KEYDOWN message.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Input Method Manager
Input Method Manager Messages

 

 

Show: