Text Services Framework
ITfKeyEventSink::OnKeyDown
The
method is called when a key down event occurs.
|
HRESULT OnKeyDown(
ITfContext* pic,
WPARAM wParam,
LPARAM lParam,
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 Values
Returns a standard OLE-defined error code or one of the
following:
| Value | Meaning |
| S_OK | The method was successful. |
Windows NT/2000/XP: Included in Windows XP.
Redistributable: Requires TSF 1.0 on Windows NT 4.0; Windows 2000; and Windows 98/Me.
Header: Declared in Msctf.idl and Msctf.h.
Library: Included as a resource in Msctf.dll.
See Also
WM_KEYDOWN