Syntax
HRESULT OnKeyDown(
[in] ITfContext *pic,
[in] WPARAM wParam,
[in] LPARAM lParam,
[out] BOOL *pfEaten
);
Parameters
- pic [in]
-
Pointer to the input context that receives the key event.
- wParam [in]
-
Specifies the virtual-key code of the key. For more information about this parameter, see the wParam parameter in WM_KEYDOWN.
- lParam [in]
-
Specifies the repeat count, scan code, extended-key flag, context code, previous key-state flag, and transition-state flag of the key. For more information about this parameter, see the lParam parameter in WM_KEYDOWN.
- pfEaten [out]
-
Pointer to a BOOL that, on exit, indicates if the key event was handled. If this value receives TRUE, the key event was handled. If this value is FALSE, the key event was not handled.
Return Value
The method can return one of the following values.
| Value | Description |
|
S_OK
| The method was successful.
|
Requirements
| Client | Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation. |
| Redistributable | Requires TSF 1.0 on Windows NT 4.0, Windows 2000 Professional and Windows MeWindows 98. |
| Header | Declared in Msctf.idl and Msctf.h. |
| DLL | Requires Msctf.dll. |
See Also
ITfKeyEventSink
WM_KEYDOWN
Send comments about this topic to Microsoft
Build date: 12/17/2008