Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
OnKeyDown
Collapse the table of content
Expand the table of content

ITfKeyEventSink::OnKeyDown method

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

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

 

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps | Windows Store apps]

Minimum supported server

Windows 2000 Server [desktop apps | Windows Store apps]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Msctf.h

IDL

Msctf.idl

DLL

Msctf.dll

See also

ITfKeyEventSink
WM_KEYDOWN

 

 

Community Additions

ADD
Show:
© 2015 Microsoft