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.
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 0. 25-28 Not used. 29 Context code. This value is always 0. 30 Previous key state. This value is 1 if the key is down or 0 if it is up. 31 Transition 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
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|