Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
TSF Reference
TSF Interfaces
ITfKeyEventSink
 ITfKeyEventSink::OnKeyDown Method

  Switch on low bandwidth view
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

The method can return one of the following values.

ValueDescription

S_OK

The method was successful.

Requirements

ClientRequires Windows XP, Windows 2000 Professional, or Windows NT Workstation.
RedistributableRequires TSF 1.0 on Windows NT 4.0, Windows 2000 Professional and Windows MeWindows 98.
HeaderDeclared in Msctf.idl and Msctf.h.
DLLRequires Msctf.dll.

See Also

ITfKeyEventSink
WM_KEYDOWN


Send comments about this topic to Microsoft

Build date: 12/17/2008

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker